https://github.com/iansinnott/simple-webpack-starter
https://github.com/iansinnott/simple-webpack-starter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iansinnott/simple-webpack-starter
- Owner: iansinnott
- Created: 2016-11-19T23:12:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T05:13:12.000Z (over 9 years ago)
- Last Synced: 2025-03-20T03:39:46.448Z (over 1 year ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Webpack Starter
An aggressively simple Webpack 2 starter project
## Usage
* `npm run build`: Runs the Webpack build
* `npm run start`: Runs the Webpack build in watch mode
## Troubleshooting
### Minifacation / UglifyJS
UglifyJS is itself not necessarily compatible with your `.babelrc` config. To ensure it's compatibility you may need to use a less modern compile target. For example, if you're getting Uglify errors when you run the build try including older browsers in the supported target list:
Instead of just Chrome...
```json
{
"presets": [
["env", {
"targets": {
"browsers": "last 2 Chrome versions"
},
"modules": false,
"loose": true
}]
]
}
```
Try supporting all browsers...
```
{
"presets": [
["env", {
"targets": {
"browsers": "last 2 versions"
},
"modules": false,
"loose": true
}]
]
}
```