-
-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
When using this (for testing purposes):
{{ craft.twigpack.includeSafariNomoduleFix() }}
{{ craft.twigpack.includeJsModule("app.js", false) }}
JS doesn't work anymore, simply doesn't get executed and no errors.
I couldn't really find the issue, but it seems that the optimizer is misconfigured and the chunks are wrong.
styles: {
name: settings.vars.cssName,
test: /\.(pcss|css|vue)$/,
chunks: 'all',
enforce: true
}
When removing this block vue works fine but the chunks are wrong of course. Seems that putting al styles in one chunk is breaking js/vue.
When using the module version everything is fine.
Sorry for the bad description, but I'm still learning webpack.
Metadata
Metadata
Assignees
Labels
No labels