打包压缩
微光时空
这个作者很懒,什么都没留下…
展开
-
webpack
webpack 1. webpack是一个模块打包器(和gulp作用相似) webpack的安装 1-1 全部安装webpack,为了实际用webpack命令 2-1 全局安装webpack-cli 2-3 新建webpack默认配置文件 webpack.config.js webpack的的四大核心 entry:入口 字符串格式 entry: path.j...原创 2019-05-14 09:49:19 · 168 阅读 · 0 评论 -
Gulp
gulp let gulp = require("gulp"); let sass = require("gulp-sass"); let mincss = require("gulp-clean-css"); let babel = require("gulp-babel"); let uglify = require("gulp-uglify"); let server = require("...原创 2019-07-01 10:13:22 · 810 阅读 · 0 评论 -
手动搭建webpack分离
config/index.js const path = require("path"); const config = { entryPath: path.join(__dirname, "../src/index.js"), development: { mode: "development", port: 8689, host...原创 2019-08-06 17:12:55 · 168 阅读 · 0 评论