webpack-configuration

0.0.6 • Public • Published

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
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-configuration

Weekly Downloads

0

Version

0.0.6

License

ISC

Last publish

Collaborators

  • theasta