webpack 3.7.1
无报错,却无法生成文件试试
var htmlWebpackPlugin=require('html-webpack-plugin');
const config={
entry:{main:'./src/script/main.js',a:'./src/script/a.js'},
output:{filename: '[name]-[hash].js',path: __dirname + '/dist/js/'},
plugins:[
new htmlWebpackPlugin()
]
}
module.exports=config;
无报错,却无法生成文件试试
var htmlWebpackPlugin=require('html-webpack-plugin');
const config={
entry:{main:'./src/script/main.js',a:'./src/script/a.js'},
output:{filename: '[name]-[hash].js',path: __dirname + '/dist/js/'},
plugins:[
new htmlWebpackPlugin()
]
}
module.exports=config;
2017-10-17
最新回答 / 慕o啦啦啦
必须每个页面都要引用main.js,如果你每个页面打印的是main.js的链接话,excludeChucks: ['c','a','main']表示排除,不引用c.js,a.js,main.js,引用的是剩下的b.js
2017-10-16
ejs-loader 不支持!!webpack 3.71 请注意!!
https://github.com/okonet/ejs-loader/issues/16
https://github.com/okonet/ejs-loader/issues/16
2017-10-15
这就是构造函数
function layer() {
return {
name:'layer',
tpl:tpl,
};
}
function layer() {
return {
name:'layer',
tpl:tpl,
};
}
2017-10-15
EJS表达式 完成前后端的数据交换 对于不需要数据库的应用完全可以不发表到服务器上 一次联网永久运行。本地web应用,妙!
2017-10-15