Skip to content

Commit

Permalink
Merge pull request #125 from clpetersonucf/dev/3.0.3-required-widget-…
Browse files Browse the repository at this point in the history
…webpack-updates

Adds widget-webpack config changes
  • Loading branch information
clpetersonucf authored Dec 17, 2024
2 parents c016d9f + c77bf77 commit 04ef83c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions webpack-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,13 @@ const getDefaultRules = () => ({
loadHTMLAndReplaceMateriaScripts: {
test: /\.html$/i,
exclude: /node_modules|_guides|guides/,
type: 'asset/source',
use: [
{
loader: 'html-loader',
options: {
sources: false
}
},
{
loader: 'string-replace-loader',
options: { multiple: materiaJSReplacements }
Expand Down Expand Up @@ -357,7 +362,14 @@ const getLegacyWidgetBuildConfig = (config = {}) => {
widget: `_output/${cfg.cleanName}.wigt`,
output: `_output/${cfg.cleanName}-build-info.yml`
})
]
],
target: ['web', 'es5'],
optimization: {
moduleIds: 'deterministic',
splitChunks: {
chunks: 'all'
}
}
}

return build
Expand Down

0 comments on commit 04ef83c

Please sign in to comment.