Changelog
Next
- Include the
contenthashin generated CSS filenames. #204
v0.11.1
- Do not compress output or strip comments in the SASS loader. This fixes an issue where autoprefixer directive comments would be removed by
sass-loader, potentially causing compilation errors. #180
v0.11.0
- Correctly output
.rtl.cssmanifest entries when using theWebpackRTLPlugin. #171 - Breaking: Require Webpack CLI version 3 to avoid DevServer issues. If your project uses v4, run
npm install webpack-cli@3to downgrade. #168 - Potentially Breaking: Extend auto-shared seeds for manifest generation to
developmentpreset. The upshot of this is that multi-config setups in development don’t need custom manifest configurations to use the same manifest–they’ll do so automatically. #166 - Internal: Pin
run-parallelsubdependency (required bycopy-webpack-plugin) to 1.1.9 to guarantee Node v10 compatibility. #167
v0.10.2
- Correctly infer a default publicPath when using
withDynamicPorthelper. #161
v0.10.1
- Update WordPress
externalsobject to match latest bundled scripts. #160
v0.10
New Features
- Adapt the value of
output.pathwhen inferringoutput.publicPathin DevServer so that all assets are correctly served in multi-config situations. #156 - Generate a
production-asset-manifest.jsonfor all production preset builds. #153 Builds in a multi-configuration setup which target the same output folder will share a manifest. #154
Upgrades & Changes
- Potentially Breaking: Update
mini-css-extract-pluginto v1.3.4. Changelog. #148 - Potentially Breaking: Update
css-loaderto v5.0.1. Changelog. #136 - Potentially Breaking: Update
style-loaderto v2.0.0. Changelog. #127
All three of the above dependency upgrades include breaking API changes. None of these changes should impact vanilla usage of the presets provided by these helpers, but we recommend reviewing all three libraries’ changelogs to identify potential issues if you are customizing presets or loader behavior relating to stylesheets.
The manifest plugin now exports its constructor as a named export, not a default, so any custom builds which pull in the ManifestPlugin constructor directly from the plugin dependency (as opposed to using the recommended plugins.manifest() factory function) will need to switch to using plugins.constructors.ManifestPlugin. This should not impact un-customized presets.
- Potentially Breaking: Update
postcss-flexbugs-fixesto v5.0.2 and updatepostcss-loaderto v4.1.0. #152
The upgrade to postcss-loader requires nesting PostCSS configuration options within a .postcssOptions key on the object passed to the webpack loader. As with the style loading changes above, if you use the presets without customization this should not impact your project. Otherwise, ensure you have added this level of nesting to any code which customizes the postcss-loader’s configuration object. Consult the postcss-loader changelog for more information.
- Upgrade
webpack-fix-style-only-entriesplugin to v0.6.0. This may resolve the issue previously documented in #93 where files would be incorrectly deleted when processing an array of webpack configuration objects. #129 - Include
postcssas a direct dependency of this package, rather than a subdependency. #151 Update
webpack-bundle-analyzerbundled plugin to v4.3.0. #146- Internal: Add the generation of a basic development and production bundle, including scss styles, to the CI job. #149
- Internal: Upgrade local development dependencies to latest versions. #150
v0.9
- Introduce support for filtering entire stylesheet loader chain by matching against the special
loaderKeyvalue “stylesheet” when passing afilterLoadersmethod into a preset. #124 - The bundled version of
terser-webpack-pluginhas been upgraded from 3.1.0 to 4.2.0. Consult the breaking changes interser-webpack-plugin4.0 if you utilize this plugin with any custom configuration or options. #123 - The bundled version of
css-loaderhas been upgraded from 3.6.0 to 4.3.0. Consult the breaking changes incss-loader4.0 if you utilize this loader with any custom configuration or options. #120 - The bundled version of
sass-loaderhas been upgraded from 9.0.3 to 10.0.2. Consult the breaking changes insass-loader10.0 if you utilize this loader with any custom configuration or options. #119 - The bundled version of
mini-css-extract-pluginhas been upgraded from 0.9.0 to 0.11.2. #122
v0.8.2
- Fix issue where
plugins.clean()triggered an error. #106
v0.8.1
- Permit
withDynamicPorthelper to work with multi-configuration Webpack files. #103
v0.8.0
- Breaking: End support for Node v8. Node v10.13 or later is now required.
- Breaking: Remove
fix-style-only-entriesplugin from production preset. This plugin can incorrectly remove files in certain multi-configuration scenarios. #93 - Breaking: Update
clean-webpack-pluginfactory to reflect API changes in the latest bundled version.plugins.clean()can now be added to a webpack configuration’spluginsarray with no additional arguments. #31 - Breaking: Update
copy-webpack-pluginfactory to reflect API changes in the latest bundled version.plugins.copy()now takes a sole object argument specifying apatterns: []array key, where before patterns were passed as a first argument. #96 - Breaking: End support for TypeScript 3.5 and earlier following upgrate to latest
ts-loader. #102 - Switch optional SCSS dependency from
node-sasstosass(a pure JavaScript implementation ofdart-sass), to avoid the need to compile our sass dependency. - Introduce
withDynamicPorthelper function to simplify implementation of open port fallback logic. #89 - Output CSS sourcemaps in production if
devtooloption is set. #94 - Add postcss-preset-env to postcss webpack configuration and configure it to transform Stage 3 CSS features #91
v0.7.1
- Resolve issue where
{bundle name}.LICENSE.txtfiles were output by Terser in situations where these files were not generated prior to 0.7.0. #51
v0.7.0
- Include
plugins.fixStyleOnlyEntries()in the production preset. #33 - Bump dependency versions to resolve
npm auditsecurity warnings. #40copy-webpack-pluginhas been upgraded from 4.6 to 5.1.1. Consult the breaking changes incopy-webpack-plugin5.0 if you utilize this plugin with any custom configuration or options.terser-webpack-pluginhas been upgraded from 1.3 to 32.3.5. Consult the breaking changes interser-webpack-plugin2.0 if you utilize this plugin with any custom configuration or options. Several flags in our Terser configuration withinplugins.jshave been removed because those options are now Terser’s default behavior.
v0.6.1
- Set
emitWarning: truein development preset’seslint-loaderconfiguration so that lint errors do not block hot updates. #39
v0.6.0
- Add TypeScript support. If the
typescriptpackage is detected, the presets will usets-loaderto interpret.tsand.tsxfiles. #38 - Add default
chunkFilenameto output configuration to ensure chunks are generated using hashed filenames. #34
v0.5.2
- Fix bug where bundle keys in the
entryconfiguration object were not respected. #30
v0.5.1
- Provide default values for
entryandoutput.pathconfiguration options. #28 - Update
externalsto include latest WordPress core package names. #26 - Add
@babel/plugin-proposal-class-propertiesplugin to permit use of class instance properties. #24 - Cache babel preset configuration for performance. #23
v0.5.0
- First public release (remove beta notice from README).
- Release documentation site.
- Bundle
block-editor-hmrpackage. #15 - Revert
plugins.fixStyleOnlyEntries()to the official version ofwebpack-fix-style-only-entriesplugin. #21 - Only inject
eslint-loaderifeslintis installed. #16 - Add a reusable preset babel configuration as
@humanmade/webpack-helpers/babelrc-preset. #13 - Remove
package-lock.jsonfrom distributed npm package. #6
v0.4.0
- Add OptimizeCssAssets plugin to production preset.
- Throw errors on port conflict instead of using
console.errorandprocess.exit.
v0.3.2
- First usable beta.