Skip to content

Tarrask/sails-hook-webpack-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sails-hook-webpack2

NPM version

Webpack 2.x asset pipeline hook for Sails.js specially tailored for the vuejs-templates/webpack

Getting started

This package is best used with the sails-generate-new-webpack-vue which will generate a new sails project using webpack2 instead of grunt and vue.js as a front-end framework and will install this package as a dependency.

For usage or more informations, please read the sails-generate-new-webpack-vue readme.

Usage

This package is a sails.js hook that will be triggered when sails.js lifts. It use the build config located in ./webpack/build and ./webpack/config. Please see the vuejs-templates/webpack documentation for more informations.

In a development environment, it will inject the webpack-dev-middleware, the webpack-hot-middleware and the connect-history-api-fallback middlewares.

In a production envrionment, it will compile the webpack project before the server get lifted.

License

MIT

Maintained By

Damien Plumettaz

Credits

Based on sails-hook-webpack2

About

Webpack 2.x and vue.js 2 asset pipeline hook for Sails.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published