web-webpack-plugin
web-webpack-plugin copied to clipboard
alternative for html-webpack-plugin
> [email protected] build D:\app\social-h5\mall-master > node build/build.js D:\app\social-h5\mall-master\node_modules\[email protected]@web-webpack-plugin\lib\WebPlugin.js:99 compiler.hooks.webPluginBeforeEmitHTML = new SyncHook(['htmlDocument']); ^ TypeError: Cannot set property 'webPluginBeforeEmitHTML' of undefined at WebPlugin.apply (D:\app\social-h5\mall-master\node_modules\[email protected]@web-webpack-plugin\lib\WebPlugin.js:99:42) at Object.keys.forEach (D:\app\social-h5\mall-master\node_modules\[email protected]@web-webpack-plugin\lib\AutoWebPlugin.js:179:7) at Array.forEach () at...
I have a template ```html #{extends 'main.html'/} #{set 'reactScripts'} #{/set} ``` so I'd like to have output.html ```html #{extends 'main.html'/} #{set 'reactScripts'} #{/set} ``` without html/head/body wrapper tags. Is it...
this code is not run when i configured in vue.config.js,it can cause template.html without complier
// call by webpack apply(compiler) { global._isProduction = util.isProduction(compiler); global._isExtractStyle = util.isExtractStyle(compiler); const { options: compilerOptions } = compiler; const { entryMap } = this; const { outputPagemap, outputPagemapFilename, requires...
The plugin overwrite the current entry instead of adding to it. What about if the user has other objects instead of only html files and want all?
``` src - A - a -index.js - B - b - index.js template.html ``` 假设我的目录结构是这样的,导到 dist 中的 html 与 index.js 同级,应该怎么做呢? AutoWebPlugin 的首参是单目录的,只用在 A 上可行。 看了源码是希望我将 { 'src/A/a': true,...
首先表示看到这个插件,很强大,很符合我们的使用场景 再者我提一个小功能, 假如很多模块,指向配置打包二个模块的话,我只配置 ```javascript const includeList = ['index','home']; ``` ```javascript includePages:includeList, includePages:(pageNaem) =>includeList.include(pageNaem), ``` 或者IgnorePages支持函数 ```javascript ignorePages:(pageNaem) => !includeList.include(pageNaem) ``` 和loader一样的机制`exclude/include` 同时存在的时候,选择只是用一个或者按优先级 希望作者大大能够支持,尽快发布一下,谢谢了,需要我帮忙new request一个吗
`async` tag attribute gets converted to `async=""`
commonsChunk在webpack4.0失效了,无法提取打包公共代码
https://github.com/gwuhaolin/web-webpack-plugin/blob/0b55258551234c917fa46e689b129844d65ac36d/lib/AutoWebPlugin.js#L167 这里`...otherOptions`的写法,导致plugin配置中的`template`属性和WebPlugin中buildHtmlDocument方法中判断的options.template属性冲突,引起覆盖
#37