generated from scenaristeur/socialid-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
webpack.config.js2
55 lines (53 loc) · 1.27 KB
/
webpack.config.js2
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
47
48
49
50
51
52
53
54
55
const path = require('path');
module.exports = {
entry: {
"app-element": './src/component/app-element.js',
// "app-mini": './src/component/app-mini.js',
"app-base": './src/base/app-element.js',
/*"login-element": './src/component/login-element.js',
"chats-element": './src/component/chats-element.js',
"messages-element": './src/component/messages-element.js',
"flow-element": './src/component/flow-element.js',
"eve.custom.js": "./node_modules/evejs/dist/eve.custom.js"*/
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
},
/*externals: {
"@solid/query-ldflex": 'data',
"lit-element": "LitElement",
"evejs": "eve",
"solid-auth-client": "auth",
"@rdfjs/data-model": "rdfjs"
},*/
module: {
rules: [
{
test: /\.scss$/,
use: [
{
loader: 'file-loader',
options: {
name: 'bundle.css',
},
},
{ loader: 'extract-loader' },
{ loader: 'css-loader' },
{ loader: 'sass-loader' },
]
}
]
},
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true,
port: 9000,
historyApiFallback: true,
inline: true,
open: true,
hot: true
},
devtool: "eval-source-map",
performance: { hints: false }
};