summaryrefslogtreecommitdiff
path: root/example/webpack.config.d
diff options
context:
space:
mode:
Diffstat (limited to 'example/webpack.config.d')
-rw-r--r--example/webpack.config.d/noopenbrowser.js1
-rw-r--r--example/webpack.config.d/style.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/example/webpack.config.d/noopenbrowser.js b/example/webpack.config.d/noopenbrowser.js
new file mode 100644
index 0000000..27eb2d8
--- /dev/null
+++ b/example/webpack.config.d/noopenbrowser.js
@@ -0,0 +1 @@
+(config.devServer = config.devServer || {}).open = false \ No newline at end of file
diff --git a/example/webpack.config.d/style.js b/example/webpack.config.d/style.js
new file mode 100644
index 0000000..3bdbd3c
--- /dev/null
+++ b/example/webpack.config.d/style.js
@@ -0,0 +1,5 @@
+config.resolve.modules.push("src/main/resources/")
+config.resolve.modules.push(".")
+config.module.rules.push({test: /\.txt$/, type: 'asset/source'})
+config.module.rules.push({test: /\.(png|jpg|jpeg|svg|gif)$/i, type: 'asset/resource'})
+console.log("Hahahahahah")