From e20e5f57954e3db08593fc1445d4a33c8ad1e076 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Mon, 14 Jun 2021 08:04:19 -0400 Subject: [PATCH] Simplify Webpack "@" alias setup --- webpack.mix.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/webpack.mix.js b/webpack.mix.js index 6ce458a..9922102 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -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()