An open API service indexing awesome lists of open source software.

https://github.com/davidedaniel/webpacker


https://github.com/davidedaniel/webpacker

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

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
```bash
$ npm install @hackoregon/webpacker --save-dev
```

```javascript
// 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
);
```