summaryrefslogtreecommitdiff
path: root/webpack.config.mjs
diff options
context:
space:
mode:
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;
+};