forked from abeade/browser-websocket-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.test.js
More file actions
31 lines (30 loc) · 697 Bytes
/
Copy pathwebpack.test.js
File metadata and controls
31 lines (30 loc) · 697 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
30
31
const path = require('path')
const ROOT = path.resolve(__dirname)
const root = path.join.bind(path, ROOT)
module.exports = function () {
// noinspection WebpackConfigHighlighting
return {
mode: 'development',
devtool: 'inline-source-map',
resolve: {
modules: [
root('src/main'),
root('node_modules')
]
},
module: {
rules: [{
test: /\.js$/,
loader: 'babel-loader'
}, {
test: /\.scss$/,
loader: ['raw-loader', 'sass-loader'],
exclude: [root('src/index.html')]
}, {
test: /\.html$/,
loader: 'raw-loader',
exclude: [root('src/main/index.html')]
}]
}
}
}