|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- const path = require('path');
- const webpack = require('webpack');
-
- module.exports = {
- configureWebpack: {
- resolve: {
- alias: {
- '@': path.join(__dirname, 'src'),
- }
- },
- // externals: {
- // back: 'back',
- // jquery: 'jQuery',
- // $: 'jQuery',
- // WebUploader: 'WebUploader',
- // },
- externals: {
- jquery: 'window.$',
- $: 'window.$'
- },
- plugins: [
- new webpack.DefinePlugin({
- 'process.env': {
- NODE_ENV: '"development"',
- API_HOST: '"/api/"',
- // API_HOST: '"http://47.104.91.134:9000/api/"',
-
- }
- }),
- ],
- devServer: {
- proxy: {
- // '/api/pms': {
- // target: 'http://47.104.16.113:8092',
- // //target:'http://10.240.5.17:8089',
-
- // changeOrigin: true,
- // secure: false,
- // },
- // '/api/cms':{
- // target: 'http://47.104.16.113:8082',
- // //target:'http://10.240.5.17:8089',
-
- // changeOrigin: true,
- // secure: false,
- // },
- '/api': {
- target: 'http://www.lockingos.org:9003',
- // target: 'http://10.240.32.245:8080',
- changeOrigin: true,
- secure: false,
- }
- },
- },
- },
-
- css: {
- loaderOptions: {
- sass: {
- // 根据自己样式文件的位置调整
- additionalData: `@import "@/global.variable.scss";`
- }
- }
- },
- assetsDir: 'static',
- // configureWebpack: config => {
- // console.log('????')
- // return config;
- // }
- }
|