Vue2项目解决-js/css文件无法引用问题
打包:
在vue.config.js文件中

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
// 添加以下三个属性
assetsDir: 'static',
parallel: false,
publicPath: './',
})
本文来自博客园,作者:PYK_XG,转载请注明原文链接:https://www.cnblogs.com/pyk55cc/p/16724766.html

解决Vue2打包后—js/css文件引入失败问题
浙公网安备 33010602011771号