aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/paths.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-30 22:44:55 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-30 23:09:33 +0200
commit815b190d28cc42e6f3d44d04e1f1ebaea9208cf6 (patch)
tree0d3f0133a39a4a796e698d360dc32f54fb41d8ad /config/webpack/paths.js
parent3a3baddad1c801d77dc398d2c6980f3c14f4a47c (diff)
chore: convert html files to php
Now I can use php to determine current env and load static CSS file if it is prod.
Diffstat (limited to 'config/webpack/paths.js')
-rw-r--r--config/webpack/paths.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/webpack/paths.js b/config/webpack/paths.js
new file mode 100644
index 0000000..fd4c73f
--- /dev/null
+++ b/config/webpack/paths.js
@@ -0,0 +1,15 @@
+const path = require('path');
+
+const devFolder = path.resolve(__dirname, '../../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/')],
+};