0.7.0 • Published 9 years ago
webpackman v0.7.0
webpackman
Shared webpack config files.
Install
$ 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"]
}Usage
$ npm start # start dev-server at localhost:8080
$ npm run build # build to the dist folderLoaders
.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 screenshotsRelated
License
MIT © ewnd9