aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorIndrajith K L2017-12-19 19:10:01 +0530
committerIndrajith K L2017-12-19 19:10:01 +0530
commit9b608b89b16953c8d717ed8fde02ae396eea6094 (patch)
treea914badf600f8f95c4d25e8d8f4138290162bd8b /webpack.config.js
parent90d191ce4b23106657712efe3e8830410b89225e (diff)
downloadvanilla-yo-notification-9b608b89b16953c8d717ed8fde02ae396eea6094.tar.gz
vanilla-yo-notification-9b608b89b16953c8d717ed8fde02ae396eea6094.tar.bz2
vanilla-yo-notification-9b608b89b16953c8d717ed8fde02ae396eea6094.zip
* Webpack config changes
* Updated documentation with example * removed unwanted dependencies from starter pack
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index e88631d..33c1e5f 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,10 +1,12 @@
const webpack = require("webpack");
const path = require("path");
-const HtmlWebpackPlugin = require("html-webpack-plugin");
const DashboardPlugin = require("webpack-dashboard/plugin");
+const WebpackShellPlugin = require('webpack-shell-plugin');
+
+
const nodeEnv = process.env.NODE_ENV || "development";
const isProd = nodeEnv === "production";
-
+console.log(webpack.plugins);
var config = {
devtool: isProd ? "hidden-source-map" : "source-map",
context: path.resolve("./src"),
@@ -45,7 +47,6 @@ var config = {
output: { comments: false },
sourceMap: true
}),
- new DashboardPlugin(),
new webpack.LoaderOptionsPlugin({
options: {
tslint: {
@@ -53,6 +54,9 @@ var config = {
failOnHint: true
}
}
+ }),
+ new WebpackShellPlugin({
+ onBuildEnd: 'cp -r dist/* docs/example/'
})
],
devServer: {