摘要:
1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
摘要:
1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
摘要:
1 //此文件是检查node+npm的版本 在build.js里面使用 2 'use strict' 3 const chalk = require('chalk') //导入chalk模块 用来改变字体颜色 4 const semver = require('semver') //导入semver 阅读全文
摘要:
1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
摘要:
1 const fs = require('fs') 2 const path = require('path') 3 const webpack = require('webpack') 4 const UglifyJsPlugin = require('uglifyjs-webpack-plug 阅读全文
摘要:
1 //此文件是开发环境下webpack相关配置 2 'use strict' 3 const utils = require('./utils') 4 const webpack = require('webpack') 5 const config = require('../config') 阅读全文
摘要:
1 // webpack.base.conf.js 基础配置 2 'use strict' 3 const path = require('path') // path模块是路径设置 4 const webpack = require('webpack') 5 const utils = requi 阅读全文
摘要:
1 //处理.vue文件的配置文件 2 'use strict' 3 const utils = require('./utils') 4 const config = require('../config') 5 const path = require('path') 6 const isPro 阅读全文
摘要:
1 //此文件用来配置 assetsPath css-loader 和 vue-style-loader createNotifierCallback 2 'use strict' 3 const path = require('path') 4 const config = require('.. 阅读全文
摘要:
1 // bulid.js是webpack的打包文件,通过配置package.json中的script来执行脚本。命令号npm run build即运行node build/build.js 2 'use strict' 3 require('./check-versions')() // 检查no 阅读全文
摘要:
1 'use strict' 2 module.exports = { 3 NODE_ENV: '"production"', 4 API_HOST:'"http://www.code-js.com:7001"', //线上环境 5 VERSION_CONTROL: false // yarn bu 阅读全文
摘要:
1 'use strict' 2 const merge = require('webpack-merge') 3 const prodEnv = require('./prod.env') 4 5 //合并两个配置文件对象并生成一个新的配置文件,如果合并的过程中遇到冲突的属性,第二个参数的属性会覆 阅读全文
摘要:
1 //此文件是用来配置各个环境参数 2 3 'use strict' 4 // Template version: 1.3.1 5 // see http://vuejs-templates.github.io/webpack for documentation. 6 7 const path = 阅读全文