webpackman
Shared webpack config files.
Install
$ npm install webpackman babel-preset-es2015 babel-preset-stage-0 -D
// webpack.config.jsmoduleexports = ;
// webpack.config.prod.jsmoduleexports = ;
// package.json
// .babelrc
Usage
$ npm start # start dev-server at localhost:8080 $ npm run build # build to the dist folder
Loaders
.js
.css
css files which have components
directory in their path will be loaded as css-modules
**/style.css
- generic css**/components/**/*.css
-css-modules
.html
, .png
, .jpeg
, .gif
, .json
, .woff2
, .ttf
, .eot
, .svg
static loaders
Changelog
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
Used in
Tests
$ npm test$ NODE_ENV=test-update npm test # update screenshots
Related
License
MIT © ewnd9