Skip to content

Commit

Permalink
Use .alias method from Mix (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k authored Mar 19, 2022
1 parent da73c94 commit bad55c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/Console/InstallsInertiaStacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ protected function installInertiaVueStack()
// Tailwind / Webpack...
copy(__DIR__.'/../../stubs/inertia-common/tailwind.config.js', base_path('tailwind.config.js'));
copy(__DIR__.'/../../stubs/inertia-common/webpack.mix.js', base_path('webpack.mix.js'));
copy(__DIR__.'/../../stubs/inertia-common/webpack.config.js', base_path('webpack.config.js'));
copy(__DIR__.'/../../stubs/inertia-common/jsconfig.json', base_path('jsconfig.json'));
copy(__DIR__.'/../../stubs/inertia-common/resources/css/app.css', resource_path('css/app.css'));
copy(__DIR__.'/../../stubs/inertia-vue/resources/js/app.js', resource_path('js/app.js'));
Expand Down Expand Up @@ -150,7 +149,6 @@ protected function installInertiaReactStack()
// Tailwind / Webpack...
copy(__DIR__.'/../../stubs/inertia-common/tailwind.config.js', base_path('tailwind.config.js'));
copy(__DIR__.'/../../stubs/inertia-common/webpack.mix.js', base_path('webpack.mix.js'));
copy(__DIR__.'/../../stubs/inertia-common/webpack.config.js', base_path('webpack.config.js'));
copy(__DIR__.'/../../stubs/inertia-common/jsconfig.json', base_path('jsconfig.json'));
copy(__DIR__.'/../../stubs/inertia-common/resources/css/app.css', resource_path('css/app.css'));
copy(__DIR__.'/../../stubs/inertia-react/resources/js/app.js', resource_path('js/app.js'));
Expand Down
9 changes: 0 additions & 9 deletions stubs/inertia-common/webpack.config.js

This file was deleted.

4 changes: 3 additions & 1 deletion stubs/inertia-common/webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ mix.js('resources/js/app.js', 'public/js')
require('tailwindcss'),
require('autoprefixer'),
])
.webpackConfig(require('./webpack.config'));
.alias({
'@': 'resources/js',
});

if (mix.inProduction()) {
mix.version();
Expand Down

0 comments on commit bad55c9

Please sign in to comment.