forked from ValaaLabs/valaa-stack
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
29 lines (27 loc) · 805 Bytes
/
webpack.config.js
File metadata and controls
29 lines (27 loc) · 805 Bytes
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
const shared = require("@valos/toolset-revealer/shared/webpack.config");
const path = require("path");
const toolsetWebpackConfig =
require(`${process.cwd()}/toolsets`)["@valos/toolset-revealer"].webpack;
toolsetWebpackConfig.output.path = path.posix.resolve(toolsetWebpackConfig.output.path);
module.exports = {
...shared,
...toolsetWebpackConfig,
devServer: {
...shared.devServer,
publicPath: `/valos/inspire/`,
},
module: {
...shared.module,
rules: [
{ use: { loader: "babel-loader" }, test: /\.js$/, exclude: /node_modules/, },
...shared.module.rules.map(rule => (
rule.use && (rule.use[0] === "style-loader")
? {
...rule,
include: /packages/,
}
: rule
))
],
},
};