aboutsummaryrefslogtreecommitdiffstats
path: root/config/paths.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-17 19:42:44 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-17 19:42:44 +0200
commit1c51be07ec0bce71d09b04fbc48a950a60b09c89 (patch)
treeda99d11b0523cf6fa7401859aac129ef53ec4da4 /config/paths.js
parent22adbcd1eb5f4233f65cc4f195298c32cfaa156e (diff)
build: add webpack config
Downgrade Imagemin-SVGO to v9 because v10 is incompatible with image minimizer. Change ESlint config to avoid lint error (should be dependency instead of devDependency...)
Diffstat (limited to 'config/paths.js')
-rw-r--r--config/paths.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/paths.js b/config/paths.js
new file mode 100644
index 0000000..48d2bf4
--- /dev/null
+++ b/config/paths.js
@@ -0,0 +1,15 @@
+const path = require('path');
+
+const devFolder = path.resolve(__dirname, '../htdocs/src/');
+
+module.exports = {
+ src: {
+ fonts: path.resolve(devFolder, './fonts/'),
+ images: path.resolve(devFolder, './images/'),
+ scripts: path.resolve(devFolder, './js/app.js'),
+ style: path.resolve(devFolder, './scss/style.scss'),
+ },
+ dist: path.resolve(devFolder, '../assets/'),
+ files: [path.resolve(devFolder, '../**/*.php')],
+ sassPaths: [path.resolve(devFolder, '../../node_modules/modern-normalize/')],
+};