@symfony/webpack-encore
Advanced tools
Changelog
0.28.0
Don't make @babel/preset-env
use forceAllTransforms
option
in production - this will reduce build size in production
for environments that only need to support more modern
browsers - #612 thanks to @Lyrkan.
Added support with enablePostCssLoader()
to process files
ending in .postcss
or using lang="postcss"
in Vue - #594
thanks to @Lyrkan.
Allow resolve-url-loader
to be configured via enableSassLoader()
-
#603 thanks to @diegocardoso93.
Support was removed from Node 9 (a no-longer-supported version of Node) - #585 thanks to @weaverryan
[BC Break] Removed the ability to use [chunkhash]
in
configureFilenames()
, which was already deprecated and
no longer reliable - #608 thanks to @Lyrkan.
Changelog
0.27.0
[Behavior Change] The Babel configuration sourceType
default was
changed from not being specified (so, the default module
was used)
to unambiguous
. This is to help Babel's useBuiltIns
functionality
properly determine if a require
or import
should be automatically
added to your files, based on that file's style - #555 thanks to @Lyrkan.
Added JSX support to Vue! #553 thanks to @Kocal.
Cleaned up the jsdoc in index.js
to add better docs and better
IDE auto-completion - #550 thank sto @Lyrkan.
Changelog
0.26.0
[Behavior change] The Babel useBuiltIns
option default value changed
from entry
to false
, which means that polyfills may no longer be
provided in the same way. This is due to a change in Babel and core-js.
To get the same functionality back, run yarn add core-js --dev
, then use:
Encore.configureBabel(() => {}, {
useBuiltIns: 'entry', // or try "usage"
corejs: 3
})
This comes from #545 thanks to @Lyrkan.
Added the ability to "resolve" CSS and Sass files without specifying
the file extension and by taking advantage of the sass
or style
attribute in an npm package. For example, you can now import the main
Bootstrap SASS file from within a SASS file by saying @import ~bootstrap
.
This will use the sass
attribute from the bootstrap package.json
file to find which file to load. #474 thanks to @deAtog.
Added a new Encore.enableIntegrityHashes()
, which will cause a new
integrity
key to be added to entrypoints.json
with integrity values
that can be included in the script
or link
tag for that asset - #522
thanks to @Lyrkan.
Allow some parts of configureBabel()
to be used, even if there is
an external .babelrc
configuration file - #544 thanks to @Lyrkan.
Changelog
0.25.0
[BC BREAK] Various dependency versions were updated, including
css-loader
updated from ^1.0.0
to ^2.1.1
and resolve-url-loader
updated from ^2.3.0
to ^3.0.1
. The minimum Node version was
also bumped from 6 to 8. See #540 for more details.
Added Encore.disableCssExtraction()
if you prefer your CSS to
be output via the style-loader
- #539 thank to @Lyrkan.
Added Encore.configureLoaderRule()
as a way to configure the
loader config that Encore normally handles - #509 thanks to @Kocal.
Babel cache is no longer used for production builds to avoid a bug where the cache prevents browserslist from being used - #516 thanks to @Lyrkan.
Changelog
0.24.0
Add CSS modules support in Vue.js for Sass/Less/Stylus - #511 thanks to @Lyrkan
Allow to use Dart Sass instead of Node Sass - #517 thanks to @Lyrkan
Allow to set a custom context in copyFiles - #518 thanks to @Lyrkan
Improve 'Install x to use y' and 'Unrecognized method' error messages - #520 thanks to @Lyrkan
Allow to set @babel/preset-env's useBuiltIns option - #521 thanks to @Lyrkan
Allow setOutputPath to create nested directories - #525 thanks to @Lyrkan
Changelog
0.23.0
Add support for CSS modules in Vue - #508 thanks to @Lyrkan
Store externals in an array - #495 thanks to @deAtog
Add Encore.isRuntimeEnvironmentConfigured()
- #500 thanks
to @stof.
Add the ability to configure watch options - #486 thanks to @Kocal
Enabled cache and parallelism for terser for faster builds - #497 thanks to @Kocal