From a4e0a345d6ac821cfcad1e6a0c805ebeb7207aa5 Mon Sep 17 00:00:00 2001 From: Franzz Date: Sun, 3 May 2026 18:31:53 +0200 Subject: [PATCH] Use resolves --- build/webpack.config.js | 8 +++++--- src/Spot.vue | 6 +++--- src/{scripts => }/app.js | 12 ++++++------ src/components/admin.vue | 6 +++--- src/components/project.vue | 14 +++++++------- src/components/projectMediaLink.vue | 4 ++-- src/components/projectPopup.vue | 10 +++++----- src/components/projectPost.vue | 14 +++++++------- src/components/projectRelTime.vue | 2 +- src/components/spotButton.vue | 2 +- src/components/spotIcon.vue | 16 +++++++++++++++- src/components/spotIconStack.vue | 2 +- src/components/upload.vue | 4 ++-- src/scripts/jquery.helpers.js | 2 +- src/scripts/lightbox.js | 2 +- src/styles/_common.scss | 2 +- src/styles/_fa.scss | 11 ----------- src/styles/_lightbox.scss | 6 +++--- src/styles/_mobile.scss | 2 +- src/styles/_page.admin.scss | 4 ++-- src/styles/_page.project.feed.scss | 6 +++--- src/styles/_page.project.map.scss | 8 ++++---- src/styles/_page.project.panel.scss | 6 +++--- src/styles/_page.project.scss | 14 +++++++------- src/styles/_page.project.settings.scss | 8 ++++---- src/styles/_page.upload.scss | 4 ++-- src/styles/spot.scss | 17 ++++++++--------- 27 files changed, 98 insertions(+), 94 deletions(-) rename src/{scripts => }/app.js (80%) delete mode 100644 src/styles/_fa.scss diff --git a/build/webpack.config.js b/build/webpack.config.js index aae4d37..b14b175 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -19,7 +19,7 @@ module.exports = (env, argv) => { devtool: isDev ? 'inline-source-map' : false, watch: isDev, entry: { - app: path.resolve(SRC, 'scripts', 'app.js') + app: path.resolve(SRC, 'app.js') }, output: { path: DIST, @@ -93,9 +93,11 @@ module.exports = (env, argv) => { new VueLoaderPlugin() ], resolve: { - extensions: ['.js', '.vue', '...'], + extensions: ['.vue', '.scss', '...'], alias: { - '@scripts': path.resolve(SRC, 'scripts') + '@components': path.resolve(SRC, 'components'), + '@scripts': path.resolve(SRC, 'scripts'), + '@styles': path.resolve(SRC, 'styles') } } }; diff --git a/src/Spot.vue b/src/Spot.vue index 6e20722..75ac31b 100644 --- a/src/Spot.vue +++ b/src/Spot.vue @@ -1,7 +1,7 @@