12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
- module.exports = {
- publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/dist' :
- process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
-
- crossorigin: 'anonymous',
-
- productionSourceMap: false,
- transpileDependencies: ['swiper', 'dom7'],
-
- devServer: {
- host: "0.0.0.0",
- port: 8083,
- https: false,
- open: true,
- proxy: ''
- },
- configureWebpack: {
- externals: {
- 'axios': "axios"
- }
-
-
-
-
-
-
-
-
-
-
-
- },
- css: {
-
-
-
-
-
-
-
-
-
-
-
-
- loaderOptions: {
- postcss: {
- plugins: [
- require("postcss-px-to-viewport")({
- unitToConvert: "px",
- viewportWidth: 1000,
- viewportHeight: 600,
- unitPrecision: 5,
- propList: ["*"],
- viewportUnit: "vw",
- fontViewportUnit: "vw",
- selectorBlackList: ['van', 'el-'],
- minPixelValue: 1,
- mediaQuery: false,
- replace: true,
- exclude: /(\/|\\)(node_modules)(\/|\\)/,
- })
- ]
- }
- }
- }
- }
|