Skip to content

Commit

Permalink
fix: remove html encoding from html webpack filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Mar 31, 2021
1 parent ce8b83a commit 34650c0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [2.1.2](https://github.com/hayes0724/shopify-packer/compare/2.1.1...2.1.2) (2021-03-31)


### :bug: Bug Fixes

* remove html encoding from html webpack filenames ([26ef677](https://github.com/hayes0724/shopify-packer/commit/26ef6770afc2cef22b1fc3ffcdae26137751ba15))


### chore

* removed html-webpack-tags-plugin from dev dependency ([ce8b83a](https://github.com/hayes0724/shopify-packer/commit/ce8b83a4e8791cadbd65088090da346e3fd0bdd7))



## [2.1.1](https://github.com/hayes0724/shopify-packer/compare/2.1.0...2.1.1) (2021-03-31)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hayes0724/shopify-packer",
"version": "2.1.1",
"version": "2.1.2",
"bin": {
"packer": "cli/index.js"
},
Expand Down
4 changes: 4 additions & 0 deletions src/webpack/include-liquid-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ class IncludeLiquidStylesPlugin {
HtmlWebpackPlugin.getHooks(compilation).beforeAssetTagGeneration.tapAsync(
'IncludeLiquidStylesPlugin',
(data, cb) => {
// Clean up escaped characters in vendor files
data.assets.js = data.assets.js.map((file) =>
file.includes('%40') ? file.replace(/%40/g, '@') : file
);
// Add liquid (s)css files to html webpack plugin
compilation.chunks.forEach((chunk) => {
if (chunk.auxiliaryFiles) {
Expand Down

0 comments on commit 34650c0

Please sign in to comment.