forked from CoEDL/nabu-collection-viewer-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.develop.librarybox.js
46 lines (44 loc) · 1.19 KB
/
webpack.develop.librarybox.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"use strict";
const path = require("path");
const webpack = require("webpack");
const merge = require("webpack-merge");
const common = require("./webpack.common.js");
module.exports = merge(common, {
devtool: "eval-source-map",
mode: "development",
// stats: "verbose",
devServer: {
contentBase: path.join(__dirname, "dist"),
compress: true,
host: "0.0.0.0",
port: 9000,
historyApiFallback: true,
watchContentBase: true
},
plugins: [
new webpack.DefinePlugin({
"process.env.MODE": JSON.stringify("librarybox")
})
],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: [
{
loader: "ifdef-loader",
options: {
DEPLOY_TESTING: false,
DEPLOY_PRODUCTION: false
}
},
{
loader: "babel-loader",
options: { presets: "env" }
}
]
}
]
}
});