-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathwebpack.config.js
23 lines (21 loc) · 958 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const path = require("path");
const webpack = require("webpack");
const PluginLessonsPlugins = require("./plugin-lessons-plugins");
module.exports = {
entry: "./src",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].chunk.js"
},
plugins: [
new webpack.ProgressPlugin(),
/**
* Lesson Plan Plugins
*/
new PluginLessonsPlugins.OneBasicPluginWebpackPlugin({message: "Lesson 1 - Learning at ngConf 2017!"}),
new PluginLessonsPlugins.TwoCompilerPluginWebpackPlugin({message: "Lesson 2 - The Compiler Instance!"}),
new PluginLessonsPlugins.ThreeModuleFactoryWebpackPlugin({message: "Lesson 3 - The Module Factory Instances!"}),
new PluginLessonsPlugins.FourResolverWebpackPlugin({message: "Lesson 4 - The Resolver Instance"}),
new PluginLessonsPlugins.FiveTemplateWebpackPlugin({message: "Lesson 5 - The (Main) Template Instance"})
]
}