From 815b190d28cc42e6f3d44d04e1f1ebaea9208cf6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 30 Oct 2021 22:44:55 +0200 Subject: chore: convert html files to php Now I can use php to determine current env and load static CSS file if it is prod. --- config/webpack/paths.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 config/webpack/paths.js (limited to 'config/webpack/paths.js') 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/')], +}; -- cgit v1.2.3