UNPKG

709 BJavaScriptView Raw
1import Bootstrap from "bootstrap-webpack-plugin"
2import Path from "path"
3
4
5
6const path = Path.join.bind(null, __dirname)
7const outputDirName = "build"
8const outputDir = path(outputDirName)
9
10export 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}