我正在按顺序运行webpack和grunt。Weback编译我的JavaScript代码,grunt将这些代码部署到本地apache服务器。这是我的npm脚本:
package.json包:
... "scripts": { "build": "webpack && grunt" }
我有一个场景,我需要对两者都运行监视。有办法吗?
我已经试过用 grunt-webpack 对于webpack,但不幸的是它与我的 webpack.config .
grunt-webpack
webpack.config
使用 webpack-shell-plugin :
plugins: [ new WebpackShellPlugin({ onBuildEnd: ['gulp'] }) ]