Simplify Webpack "@" alias setup
This commit is contained in:
parent
3db82754d5
commit
e20e5f5795
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue