feature_0521
郑皇 6 years ago
parent f738732de1
commit e02a68db10

@ -1,10 +1,9 @@
module.exports = { module.exports = {
plugins: { plugins: {
autoprefixer: {}, autoprefixer: {},
"postcss-px2rem-exclude": { "postcss-px2rem-exclude": {
remUnit: 192, remUnit: 40,
exclude: /node_modules|folder_name/i exclude: /node_modules|folder_name/i,
} },
} },
}; };

@ -6,9 +6,9 @@ module.exports = {
// publicPath: process.env.NODE_ENV === 'production' ? '/public/' : './', // publicPath: process.env.NODE_ENV === 'production' ? '/public/' : './',
/* history模式 */ /* history模式 */
publicPath: process.env.NODE_ENV === 'production' ? '/dist/' : '/', publicPath: process.env.NODE_ENV === "production" ? "/dist/" : "/",
/* 输出文件目录在npm run build时生成文件的目录名称 */ /* 输出文件目录在npm run build时生成文件的目录名称 */
outputDir: 'dist', outputDir: "dist",
/* 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录 */ /* 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录 */
assetsDir: "assets", assetsDir: "assets",
/* 是否在构建生产包时生成 sourceMap 文件false将提高构建速度 */ /* 是否在构建生产包时生成 sourceMap 文件false将提高构建速度 */
@ -22,7 +22,7 @@ module.exports = {
/* 自动打开浏览器 */ /* 自动打开浏览器 */
open: false, open: false,
/* 设置为0.0.0.0则所有的地址均能访问 */ /* 设置为0.0.0.0则所有的地址均能访问 */
host: '0.0.0.0', host: "0.0.0.0",
port: 8311, port: 8311,
https: false, https: false,
hotOnly: false, hotOnly: false,
@ -31,19 +31,19 @@ module.exports = {
// proxy: 'http://192.168.1.123:8312/' // proxy: 'http://192.168.1.123:8312/'
// proxy: 'http://192.168.31.177:8312/' // proxy: 'http://192.168.31.177:8312/'
// proxy: 'http://localhost:8312/' // proxy: 'http://localhost:8312/'
proxy: 'http://111.231.218.44:8080/' proxy: "http://111.231.218.44:8080/",
// proxy: 'http://jdxdev.vipgz4.idcfengye.com/' // proxy: 'http://jdxdev.vipgz4.idcfengye.com/'
}, },
// chainWebpack: config => { chainWebpack: (config) => {
// config.module config.module
// .rule('css') .rule("css")
// .test(/\.css$/) .test(/\.css$/)
// .oneOf('vue') .oneOf("vue")
// .resourceQuery(/\?vue/) .resourceQuery(/\?vue/)
// .use('px2rem') .use("px2rem")
// .loader('px2rem-loader') .loader("px2rem-loader")
// .options({ .options({
// remUnit: 192 remUnit: 40,
// }) });
// } },
} };

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save