v0.9.0
Breaking Changes:
- Changes to how React and plain JS web apps are built:
-
Builds are now generated in
dist/
instead ofpublic/build/
-
index.html
for builds is now generated based on a template insrc/index.html
, instead of using a staticpublic/index.html
[#34]Upgrading existing projects:
- move your
public/index.html
tosrc/index.html
and delete the<link>
and<script>
tags forvendor
andapp
resources. These will now be injected at build time. - replace
/public/build
in your.gitignore
with/dist/
- move your
-
public/
is now only for public files - any contents in this directory will now be copied todist/
at the start of a build. The development server will also serve static content frompublic/
.
-
Removed:
- Backwards compatibility for
nwb.config.js
format changes made in 0.8 have been removed.
Added:
- Added a
--host
option when running the dev server [#50] ExtractTextPlugin
(used to extract CSS when building) can now be configured usingwebpack.plugins.extractText
config - this allows you to configure theallChunks
setting if you want all CSS to be extracted when using code splitting.HtmlWebpackPlugin
(used to generate anindex.html
when building) can now be configured usingwebpack.plugins.html
config.
Changed:
breakConfig: true
has been added to defaultbabel-loader
config to avoid.babelrc
files being resolved by Babel - all Babel configuration is expected to be innwb.config.js
[#63]- Static resources handled by Webpack's
file-loader
now include a hash in their filenames for cachebusting when they change [#38]
Dependencies:
- babel: v5.8.34 → v5.8.38 - left-pad transitive dependency drama
- babel-core: v5.8.34 → v5.8.38 - left-pad transitive dependency drama
- connect-history-api-fallback: v1.1.0 → v1.2.0 - support custom
Accept
headers - copy-template-dir: v1.2.0 → v1.2.1 - support large template folders
- expect: v1.14.0 → v1.16.0 - mostly packaging changes?
- fs-extra: v0.26.5 → 0.26.7 - bug fixes for
copy
andemptyDir
- glob: v7.0.0 → v7.0.3 - misc fixes
- html-webpack-plugin: v2.9.0 → v2.14.0
- karma: v0.13.21 → v0.13.22 - removed a large test file from npm package
- karma-coverage: v0.5.3 → v0.5.5 - bug fixes
- karma-mocha-reporter: v1.2.3 → v2.0.0 - add karma to peerDeps; wait for all browsers to run
- npm-install-webpack-plugin: v2.0.2 → v3.0.0 -
resolve.alias
andresolve.root
support [#83] - phantomjs-prebuilt: v2.1.4 → v2.1.6 - minor fixes to custom CA handling
- react-transform-hmr: v1.0.2 → v1.0.4 - update react-proxy to fix a few correctness issues
- style-loader: v0.13.0 → v0.13.1 - add query to style/useable
- webpack-dev-middleware: v1.5.1 → v1.6.0
- webpack-hot-middleware: v2.7.1 → v2.10.0 - improved error overlay styling
- webpack-merge: v0.7.3 → v0.8.4 - change merging behavior so only loaders get prepended