Small atomic bits for crafting webpack configs


Keywords
webpack, webpack2, config, helpers
License
MIT
Install
npm install webpack-atoms@17.1.0

Documentation

webpack-atoms

Small atomic bits for crafting webpack configs

npm i webpack-atoms

webpack.config

const { rules, plugins, loaders } = require('webpack-atoms');

module.exports = {
  entry: './src/app.js',
  output: {
    /* ... */
  },

  module: {
    rules: [
      rules.js(),
      rules.images(),
      rules.css(),
    ]
  },

  plugins: [
    plugins.uglify(),
    plugins.loaderOptions(),
    plugins.extractText(),
  ]
}