1234567891011121314151617181920212223242526272829303132333435 |
- module.exports = {
- publicPath: process.env.NODE_ENV === 'production' ? '/specimenView/' : '/specimenView/',
- outputDir: 'dist/specimenView',
- productionSourceMap: false,
- devServer: {
- open: false, // 是否自动弹出浏览器页面
- host: '0.0.0.0',
- port: '8888',
- https: false, // 是否使用https协议
- hotOnly: true, // 是否开启热更新
- // proxy: {
- // '/service': {
- // target: 'http://192.168.3.108', // API服务器的地址
- // ws: true, // 代理websockets
- // changeOrigin: true, // 虚拟的站点需要更管origin
- // pathRewrite: {
- // '^/service': ''
- // }
- // }
- // }
- },
- css: {
- // extract: false,
- // sourceMap: true, // 开启 CSS source maps?
- loaderOptions: {
- less: {
- modifyVars: {
- 'primary-color': '#49b856',
- },
- javascriptEnabled: true,
- },
- },
- }
- }
|