ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1. config/index.js assetsSubDirectory: '', assetsPublicPath: './', 2.built/util.js function generateLoaders (loader, loaderOptions) { const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] if (loader) { loaders.push({ loader: loader + '-loader', options: Object.assign({}, loaderOptions, { sourceMap: options.sourceMap }) }) } // Extract CSS when that option is specified // (which is the case during production build) if (options.extract) { return ExtractTextPlugin.extract({ use: loaders,// css 引用图片打包问题 publicPath: '../', //注意: 此处根据路径, 自动更改.原来是../../../-----改这里改这里改这里 fallback: 'vue-style-loader' }) } else { return ['vue-style-loader'].concat(loaders) } }