-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.dev.config.mjs
More file actions
43 lines (40 loc) · 948 Bytes
/
webpack.dev.config.mjs
File metadata and controls
43 lines (40 loc) · 948 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
32
33
34
35
36
37
38
39
40
41
42
43
import HtmlWebpackPlugin from 'html-webpack-plugin'
import NodePolyfillPlugin from 'node-polyfill-webpack-plugin'
export default [
{
mode: 'development',
entry: './dev/index.js',
plugins: [
new HtmlWebpackPlugin({ template: './dev/index.html' }),
new NodePolyfillPlugin()
],
module: {
rules: [
{
test: /\.(js|ts)$/,
exclude: /node_modules/,
use: ['babel-loader'],
},
{
test: /\.ttl$/, // Target text files
type: 'asset/source', // Load the file's content as a string
},
],
},
resolve: {
extensions: ['.js', '.ts'],
alias: {
$rdf: 'rdflib',
rdflib: 'rdflib',
SolidLogic: 'solid-logic',
'solid-logic': 'solid-logic',
UI: 'solid-ui',
'solid-ui': 'solid-ui'
}
},
devServer: {
static: './dev'
},
devtool: 'source-map',
}
]