Simplify Webpack "@" alias setup

This commit is contained in:
Jonathan Reinink 2021-06-14 08:04:19 -04:00
parent 3db82754d5
commit e20e5f5795
1 changed files with 1 additions and 7 deletions

8
webpack.mix.js vendored
View File

@ -17,18 +17,12 @@ const cssNesting = require('postcss-nesting')
mix mix
.js('resources/js/app.js', 'public/js') .js('resources/js/app.js', 'public/js')
.vue({ runtimeOnly: true }) .vue({ runtimeOnly: true })
.alias({ '@': 'resources/js' })
.postCss('resources/css/app.css', 'public/css', [ .postCss('resources/css/app.css', 'public/css', [
// prettier-ignore // prettier-ignore
cssImport(), cssImport(),
cssNesting(), cssNesting(),
require('tailwindcss'), require('tailwindcss'),
]) ])
.webpackConfig({
resolve: {
alias: {
'@': path.resolve('resources/js'),
},
},
})
.version() .version()
.sourceMaps() .sourceMaps()