https://github.com/davidedaniel/webpacker
https://github.com/davidedaniel/webpacker
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidedaniel/webpacker
- Owner: DavideDaniel
- Created: 2017-04-29T07:52:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T13:12:53.000Z (about 8 years ago)
- Last Synced: 2025-02-07T14:18:04.479Z (4 months ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Webpacker
---
###### v 0.1.7Webpacker 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
);
```