0.0.6 • Published 9 years ago

webpack-configuration v0.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

A configuration helper for Webpack

Example

var baseConfig = {
  module: {
    loaders: [
      { test: /\.(png|jpg)$/, loader: "url?limit=1000"},
      { test: /\.html$/, loader: "html"}
    ]
  },
};
var configurationCreator = require('webpack-configuration');
module.exports = configurationCreator(baseConfig, {
  commonsChunk: true,
  extractCSS: true,
  path: 'dist/',
  publicPath: "http://static.example.com/assets",
  featureFlags: {
    DEBUG: false
  }
});