-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
I was trying to use both (html-webpack-inline-source-plugin & html-webpack-exclude-assets-plugin) of these plugins together but the build resulted in an some errors:
ERROR in TypeError: Cannot read property 'options' of undefined
- index.js:19 Compilation.<anonymous>
[MyProj]/[html-webpack-inline-source-plugin]/index.js:19:33
- Tapable.js:206
[MyProj]/[tapable]/lib/Tapable.js:206:14
- index.js:30 Compilation.<anonymous>
[MyProj]/[html-webpack-exclude-assets-plugin]/index.js:30:7
- Tapable.js:208 Compilation.applyPluginsAsyncWaterfall
[MyProj]/[tapable]/lib/Tapable.js:208:13
- index.js:636
[MyProj]/[html-webpack-plugin]/index.js:636:12
- index.js:152
[MyProj]/[html-webpack-plugin]/index.js:152:16
this is re-producible just by turning both of them on and running it vs. turning only one of them on at a time.
// gives no error
new HtmlWebpackPlugin({
title: title,
template: 'index.html',
excludeAssets: [ /some-file/ ],
// inlineSource: '.(js|css)$',
}),
new HtmlWebpackExcludeAssetsPlugin(),
// new HtmlWebpackInlineSourcePlugin(),
// gives errors
new HtmlWebpackPlugin({
title: title,
template: 'index.html',
excludeAssets: [ /some-file/ ],
inlineSource: '.(js|css)$',
}),
new HtmlWebpackExcludeAssetsPlugin(),
new HtmlWebpackInlineSourcePlugin(),
Versions:
"html-webpack-exclude-assets-plugin": "^0.0.3",
"html-webpack-inline-source-plugin": "^0.0.6",
"html-webpack-plugin": "^2.26.0",
"webpack": "2.2.0-rc.7",
shustariov-andrey
Metadata
Metadata
Assignees
Labels
No labels