| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- const path = require('path');
- const autoprefixer = require('autoprefixer');
- const pxtorem = require('postcss-pxtorem');
- function resolve(dir) {
- return path.join(__dirname, dir)
- }
- module.exports = {
- outputDir: 'dist',
- publicPath: process.env.NODE_ENV === 'production' ? '/dk' : '/',
- chainWebpack: (config) => {
- config.resolve.alias
- .set('@$', resolve('src'))
- .set('@api', resolve('src/api'))
- .set('@assets', resolve('src/assets'))
- .set('@views', resolve('src/views'))
- },
- devServer: {
- host:'192.168.101.13',
- port: 8082,
- proxy: {
- '/happyjob': {
- target: 'http://localhost:8088', //请求本地 需要happyjob后台项目
- ws: false,
- changeOrigin: true
- },
- }
- },
- css: {
- loaderOptions: {
- postcss: {
- plugins: [
- autoprefixer(),
- pxtorem({
- rootValue: 37.5,
- propList: ['*']
- })
- ]
- }
- }
- },
- lintOnSave: undefined
- };
|