Commit 616a43b4 by 张杰

优化打包

1 parent 9ec614da
const path = require('path') const path = require('path')
const { name, port } = require("./package"); const { name, port } = require("./package");
function resolve (dir) { function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
...@@ -13,6 +13,7 @@ module.exports = { ...@@ -13,6 +13,7 @@ module.exports = {
outputDir: "dist", outputDir: "dist",
assetsDir: "static", assetsDir: "static",
filenameHashing: true, filenameHashing: true,
productionSourceMap: false,
devServer: { devServer: {
overlay: { overlay: {
warning: false, warning: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!