![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
日积一步
每天保持一小步,十天就是一大步!
展开
-
webpack打包,分环境配置插件之cross-env
在多环境下打包构建是很常见的。可以这样来做:npm install --save-dev cross-env在packjson文件中:{ "scripts": { "dev": "cross-env NODE_ENV=dev ***", "test": "cross-env NODE_ENV=test ***", "build": "cross-env NODE_ENV=production ***" }}然后在其他地方就可以通过process.en..原创 2020-08-31 14:03:21 · 722 阅读 · 0 评论 -
webpack4 demo
webpack.config.jsconst path = require("path");const webpack = require("webpack");const packagejson = require("./package.json");const HtmlWebpackPlugin = require('html-webpack-plugin');//引入h...原创 2019-05-22 15:39:03 · 288 阅读 · 0 评论