feat(build): clean terminal on build

pull/2670/head
Chaim Lev-Ari 2018-10-14 13:12:15 +03:00
parent 6a119254ad
commit 2565d4ed62
3 changed files with 13 additions and 5 deletions

View File

@ -69,6 +69,7 @@
"devDependencies": {
"auto-ngtemplate-loader": "^1.3.0",
"autoprefixer": "^7.1.1",
"clean-terminal-webpack-plugin": "^1.1.0",
"css-loader": "^1.0.0",
"cssnano": "^3.10.0",
"eslint": "^3.19.0",

View File

@ -1,6 +1,7 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackBuildNotifierPlugin = require('webpack-build-notifier');
const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
module.exports = {
entry: './app/__module.js',
@ -52,10 +53,11 @@ module.exports = {
new HtmlWebpackPlugin({
template: './app/index.html'
}),
new WebpackBuildNotifierPlugin({
title: "My Project Webpack Build",
logo: path.resolve("./assets/favicon-32x32.png"),
suppressSuccess: true
})
new WebpackBuildNotifierPlugin({
title: 'My Project Webpack Build',
logo: path.resolve('./assets/favicon-32x32.png'),
suppressSuccess: true
}),
new CleanTerminalPlugin()
]
};

View File

@ -1214,6 +1214,11 @@ clean-css@~3.0.4:
commander "2.5.x"
source-map ">=0.1.43 <0.2"
clean-terminal-webpack-plugin@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/clean-terminal-webpack-plugin/-/clean-terminal-webpack-plugin-1.1.0.tgz#5c345af8ae52c276d7a8076382e79df8850896a8"
integrity sha512-aobm7IUmpaZi4g7yFeSyrGne1GBUF0Bw47cSj/xaFA/l8Zm/rM529v/HJKIjMqplbvzX/hepBIY4Cq4YtyyCrw==
cli-cursor@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"