1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
- module.exports = {
-
-
-
-
-
-
-
- crossorigin: 'anonymous',
-
- productionSourceMap: false,
- transpileDependencies: ['swiper', 'dom7'],
-
- devServer: {
- host: "0.0.0.0",
- port: 8083,
- https: false,
- open: false,
- 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)(\/|\\)/,
- })
- ]
- }
- }
- }
- }
|