diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index a07e683600beeef0d00784cd78da1dc557d996a9..78cd72e5e180a323e8dc7fe17860c627f58e86cc 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -64,7 +64,11 @@ module.exports = { limit: 10000, name: utils.assetsPath('fonts/[name].[hash:7].[ext]') } - } + }, + { + test: /\.scss$/, + loaders: ["style", "css", "sass"] + }, ] }, node: { diff --git a/config/index.js b/config/index.js index c5eded7f81ab3b7f3c6fb54e0c86bcf7adeab944..91050241c6b9791071f3b5242ced15233cae0659 100644 --- a/config/index.js +++ b/config/index.js @@ -6,32 +6,41 @@ const path = require('path') module.exports = { dev: { - // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', - proxyTable: {}, + proxyTable: { + '/api': { + //target: 'http://www.choisaaaa.shop', + target: 'http://localhost:8080', + //target: 'http://localhost:8082/systex_sbtWeb/api', + changeOrigin: true, //是否跨域 + pathRewrite: { + '^/api': '' //需要rewrite的, + } + } + }, // Various Dev Server settings host: 'localhost', // can be overwritten by process.env.HOST - port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, notifyOnErrors: true, poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- - /** * Source Maps */ // https://webpack.js.org/configuration/devtool/#development - devtool: 'cheap-module-eval-source-map', + //devtool: 'cheap-module-eval-source-map', + devtool: 'source-map', // If you have problems debugging vue-files in devtools, // set this to false - it *may* help // https://vue-loader.vuejs.org/en/options.html#cachebusting - cacheBusting: true, + cacheBusting: false, cssSourceMap: true }, diff --git a/index.html b/index.html index ec9c94922981f40d22ca37192d0097eca433af5e..310cd42d50faf9a8a0c494bd6ffa03b6cea380d1 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,6 @@
- +