1 | import Bootstrap from "bootstrap-webpack-plugin"
|
2 | import Path from "path"
|
3 |
|
4 |
|
5 |
|
6 | const path = Path.join.bind(null, __dirname)
|
7 | const outputDirName = "build"
|
8 | const outputDir = path(outputDirName)
|
9 |
|
10 | export default {
|
11 | entry: {
|
12 | playground: "./examples/playground/main.js",
|
13 | jsx: "./examples/jsx/main.js",
|
14 | rows: "./examples/rows/main.js",
|
15 | },
|
16 | output: {
|
17 | path: outputDir,
|
18 | filename: "[name].js"
|
19 | },
|
20 | module: {
|
21 | loaders: [
|
22 | { test: /\.js$/, exclude: /node_modules/, loaders: ["babel"]},
|
23 | { test: /\.css$/, exclude: /node_modules/, loaders: [ "style", "css", "cssnext" ]},
|
24 | ],
|
25 | },
|
26 | devtool: "source-map",
|
27 | devServer: {
|
28 | contentBase: outputDir,
|
29 | },
|
30 | plugins: [Bootstrap({})],
|
31 | }
|