Use resolves

This commit is contained in:
2026-05-03 18:31:53 +02:00
parent 86082c513e
commit a4e0a345d6
27 changed files with 98 additions and 94 deletions

View File

@@ -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')
}
}
};