@hackoregon/webpacker

Compose your webpack configs - comes with a default

Stats

StarsIssuesVersionUpdatedCreatedSize
@hackoregon/webpacker
000.1.75 years ago5 years agoMinified + gzip package size for @hackoregon/webpacker in KB

Readme

Webpacker


v 0.1.7

Webpacker comes with a default config and some utilities.

Webpacker.composeConfig allows you to add to a config object so you can further modularize your webpack configs.

Install

$ npm install @hackoregon/webpacker --save-dev
// entry.js
export default {
  entry: 'src/index.js'
}

// plugins.js
import webpack from 'webpack';

export default {
  plugins: [
    new webpack.optimize.UglifyJsPlugin({
      sourceMap: true,
      compress: {
        warnings: false,
      },
    }),
  ]
}

// webpack.config.js
import { composeConfig, defaultConfig } from '@hackoregon/webpacker';
import pluginsConfig from './plugins'
import entryConfig from './entry'

export default composeConfig(
  defaultConfig,
  entryConfig,
  pluginsConfig
);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.