摘要: config文件中的index.js文件 const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', // proxyTabl 阅读全文
posted @ 2022-03-17 14:11 风中追风wty 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.在src目录下新建config.js文件 2.在main.js中引入 require("file-loader?name=[path][name].[ext]?[hash]!./config.js"); 3.在index.html中引入配置文件 <script src="src/config.j 阅读全文
posted @ 2022-03-17 14:06 风中追风wty 阅读(233) 评论(0) 推荐(0) 编辑