Shared webpack config files.
$ npm install webpackman babel-preset-es2015 babel-preset-stage-0 -D
// webpack.config.js
module.exports = require('webpackman/webpack.config');
// webpack.config.prod.js
module.exports = require('webpackman/webpack.config.prod');
// package.json
{
"scripts": {
"start": "webpack-dev-server",
"build": "rm -rf dist && webpack --config webpack.config.prod.js"
}
}
// .babelrc
{
"presets": ["es2015", "stage-0"]
}
$ npm start # start dev-server at localhost:8080
$ npm run build # build to the dist folder
css files which have components
directory in their path will be loaded as css-modules
**/style.css
- generic css**/components/**/*.css
-css-modules
static loaders
v0.7.0
- hash -> chunkhashv0.6.0
- remove all overloading, leave only webpack config filesv0.5.0
- add x-public-pathv0.1.0
- initial version with my opinionated react config
$ npm test
$ NODE_ENV=test-update npm test # update screenshots
MIT © ewnd9