对接接口
This commit is contained in:
+15
-2
@@ -1,17 +1,30 @@
|
||||
|
||||
module.exports = {
|
||||
publicPath: '/wap/',
|
||||
outputDir: 'wap',
|
||||
devServer: {
|
||||
disableHostCheck: true,
|
||||
// https:true,
|
||||
disableHostCheck: false,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: process.env.VUE_APP_HOST
|
||||
target: process.env.VUE_APP_HOST,
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
chainWebpack: config => {
|
||||
const oneOfsMap = config.module.rule('scss').oneOfs.store;
|
||||
oneOfsMap.forEach(item => {
|
||||
item.use('sass-resources-loader').loader('sass-resources-loader').options({
|
||||
resources: './src/assets/scss/common.scss'
|
||||
}).end();
|
||||
})
|
||||
},
|
||||
css: {
|
||||
loaderOptions: {
|
||||
scss: {
|
||||
data: null,
|
||||
|
||||
},
|
||||
postcss: {
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user