|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- module.exports = {
- css: {
- loaderOptions: {
- css: {
- // options here will be passed to css-loader
- },
- // postcss: {
- // // options here will be passed to postcss-loader
- // plugins: [require('postcss-px2rem')({
- // remUnit: 75
- // })]
- // }
-
-
- }
- },
-
- pwa: {
- iconPaths: {
- favicon32: 'favicon.ico',
- favicon16: 'favicon.ico',
- appleTouchIcon: 'favicon.ico',
- maskIcon: 'favicon.ico',
- msTileImage: 'favicon.ico'
- }
- },
- //http://www.metavatar.cc/
- devServer: {
- overlay: {
- warnings: false,
- errors: false
- },
- proxy: {
- '/api': {
- target: 'http://www.metavatar.cc/api',
- changeOrigin: true,
- pathRewrite: {
- '^/api': ''
- },
-
- },
-
- }
- },
- lintOnSave: false,
- publicPath: './', // 打包后引用的资源路径
- }
|