6
我是个文件加载到自动呈现一堆哈巴狗模板静态HTML文件一定切入点束,但的WebPack是基于入口点也输出一个毫无意义的文件的WebPack - 不输出使用
例如,这是我webpack.config.js:
entry: {
'js/build/bundle.js': './js/app.js',
'this-shouldnt-emit': './pug/.pug.js' //pug entry point
},
output: {
path: path.join(__dirname, '../'),
filename: '[name]'
},
...
// pug loading module rule
{
test: /\.pug$/,
include: path.resolve(__dirname, "../pug"),
use: [
"file-loader?name=[path][name].html&context=./pug",
"pug-html-loader?pretty&exports=false"
]
}
,并即时得到在根目录下生成一个this-shouldnt-emit
捆绑文件,我不想。
如何停止发送输出包的文件加载器,但不会干扰它生成当前所有的静态html文件。是否有插件或某种类型的可以放在装载机链末端的空装载程序来杀死发送的包?