summaryrefslogtreecommitdiff
path: root/webpack.config.mjs
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-04-01 22:03:15 +0100
committerSam Light <samlight1994@gmail.com>2025-04-01 22:03:15 +0100
commitf612507c8f6ee870d1ce70e0a9f9cd0d9903a2fb (patch)
tree22f0fae95d2ec2e34571f9e086281a09c9a8ba80 /webpack.config.mjs
parent70e1322a5a185bfa368fdce530059c79455f370b (diff)
Created webpack build for sass
Diffstat (limited to 'webpack.config.mjs')
-rw-r--r--webpack.config.mjs24
1 files changed, 24 insertions, 0 deletions
diff --git a/webpack.config.mjs b/webpack.config.mjs
new file mode 100644
index 0000000..e471576
--- /dev/null
+++ b/webpack.config.mjs
@@ -0,0 +1,24 @@
+import {Paths, makeConfig} from '@lightscale/webpack-config';
+const __dirname = import.meta.dirname;
+
+export default (env, argv) => {
+
+ const paths = new Paths({
+ dir: __dirname,
+ source: './resources',
+ target: './public',
+ js: './js',
+ scss: './scss',
+ });
+
+ const entry = {
+ main: [paths.scssEntry('main.scss')],
+ };
+
+ const config = makeConfig(env, argv, {
+ paths,
+ entry,
+ });
+
+ return config;
+};