From 1c51be07ec0bce71d09b04fbc48a950a60b09c89 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 17 Oct 2021 19:42:44 +0200 Subject: 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...) --- config/paths.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 config/paths.js (limited to 'config/paths.js') 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/')], +}; -- cgit v1.2.3