v2.0.0
This release updates our Webpack config for Webpack 2! It includes a standalone developer build option, automatically hashed asset filenames & revision manifest, and much improved customization method powered by webpack-merge.
Upgrade Guide
Update Webpack and this config package:
"devDependencies": {
"@dosomething/webpack-config": "^2.0.0",
// ...
"webpack": "^2.4.1",
"webpack-dev-server": "^2.4.2"
}
Update your scripts in your application's package.json
:
"scripts": {
- "start": "webpack",
+ "start": "NODE_ENV=development webpack --watch",
+ "build:dev": "NODE_ENV=development webpack",
"build": "NODE_ENV=production webpack",
}
By default, outputted files will all have hashes (like app-e403528026001172451e.js
) to prevent caching issues. If you're using Laravel, you can use the mix() helper to get the versioned filename.
That's probably it! If you made an customizations to your config, you may need to update those as well.