Skip to content

Commit

Permalink
Simplify Webpack "@" alias setup
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Jun 14, 2021
1 parent 3db8275 commit e20e5f5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,12 @@ const cssNesting = require('postcss-nesting')
mix
.js('resources/js/app.js', 'public/js')
.vue({ runtimeOnly: true })
.alias({ '@': 'resources/js' })
.postCss('resources/css/app.css', 'public/css', [
// prettier-ignore
cssImport(),
cssNesting(),
require('tailwindcss'),
])
.webpackConfig({
resolve: {
alias: {
'@': path.resolve('resources/js'),
},
},
})
.version()
.sourceMaps()

0 comments on commit e20e5f5

Please sign in to comment.