Skip to content

Commit

Permalink
Fix missing polyfills in webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
autumnfound committed Jul 4, 2023
1 parent f609499 commit 159803b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"dependencies": {
"eclipsefdn-hugo-solstice-theme": "^0.0.186",
"list.js": "^1.2.0",
"lodash-es": "^4.17.21"
"lodash-es": "^4.17.21",
"querystring-es3": "^0.2.1"
},
"devDependencies": {
"vue-template-compiler": "2.6.12"
Expand Down
1 change: 1 addition & 0 deletions target/npmlist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"0.0.3","name":"eclipsefdn-hugo-jakartaee","dependencies":{"eclipsefdn-hugo-solstice-theme":{"version":"0.0.120"},"eclipsefdn-solstice-assets":{"version":"0.0.156"},"lodash-es":{"version":"4.17.15"}}}
11 changes: 10 additions & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ require('./node_modules/eclipsefdn-solstice-assets/webpack-solstice-assets.mix.j
let mix = require('laravel-mix');
mix.EclipseFdnSolsticeAssets();

// required to resolve missing polyfills
mix.webpackConfig({
resolve: {
fallback: {
querystring: require.resolve('querystring-es3'),
},
},
});

mix.setPublicPath('static');
mix.setResourceRoot('../');

mix.less('./less/styles.less', 'static/css/styles.css');
mix.less('./less/page_css_file/about/why-jakarta-ee/styles.less', 'static/css/why-jakarta-ee-styles.css')
mix.less('./less/page_css_file/about/why-jakarta-ee/styles.less', 'static/css/why-jakarta-ee-styles.css');

mix.js('js/main.js', './static/js/solstice.js');

Expand Down

0 comments on commit 159803b

Please sign in to comment.