Commit 7dcb084b by 唐玉峰

修改输出js目录名及文件名

parent d0c20200
......@@ -623,7 +623,6 @@ export default {
},
methods: {
myTimeOut() {
console.log(1);
clearTimeout(this.myTimer);
this.myTimer = setTimeout(() => {
window.opener = null;
......
......@@ -10,14 +10,11 @@ const path = require("path");
function resolve(dir) {
return path.join(__dirname, dir);
}
const timestamp = new Date().getTime();
module.exports = {
publicPath: "./", //导出路径
assetsDir: "web", //静态资源文件夹
productionSourceMap: false,
configureWebpack: {
devtool: "source-map",
},
devServer: {
//测试环境代理
port: 8066, //测试端口
......@@ -32,11 +29,17 @@ module.exports = {
},
},
configureWebpack: {
// devtool: "source-map",
resolve: {
alias: {
"@": resolve("src"),
},
},
output: {
// 修改输出js目录名及文件名
filename: `web/js/[name]-${timestamp}.js`,
chunkFilename: `web/js/[name]-${timestamp}.js`,
},
},
lintOnSave: false, //取消eslint
css: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment