运行 webpack -watch 可自动搭建一个服务器环境.
webpack -w –progress 查看打包进度
插件 : clean-webpack-plugin 每次打包清除插件
var ClearWebpackPlugin = require('clean-webpack-plugin')plugins:[new ClearWebpackPlugin (['dist'])
]
运行 webpack -watch 可自动搭建一个服务器环境.
webpack -w –progress 查看打包进度
插件 : clean-webpack-plugin 每次打包清除插件
var ClearWebpackPlugin = require('clean-webpack-plugin')plugins:[new ClearWebpackPlugin (['dist'])
]