Created
January 2, 2022 12:19
-
-
Save Cerwyn/76f4157123dd3e225566f2a7076485ec to your computer and use it in GitHub Desktop.
Adonis-Vue3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix') | |
const path = require('path') | |
/** | |
* By default, AdonisJS public path for static assets is on the `./public` directory. | |
* | |
* If you want to change Laravel Mix public path, change the AdonisJS public path config first! | |
* See: https://docs.adonisjs.com/guides/static-assets#the-default-directory | |
*/ | |
mix.setPublicPath('public') | |
mix | |
.js('resources/vue/main.js', path.resolve(__dirname, 'public/js')) | |
.webpackConfig({ | |
context: __dirname, | |
node: { | |
__filename: true, | |
__dirname: true, | |
}, | |
resolve: { | |
alias: { | |
'@': path.resolve(__dirname, 'resources/vue'), | |
'~': path.resolve(__dirname, 'resources/vue'), | |
'l': path.resolve(__dirname, 'resources/assets/sass'), | |
}, | |
}, | |
}) | |
.sass('resources/assets/scss/app.scss', path.resolve(__dirname, 'public/css')) | |
.copy('resources/assets/images/', 'public/images/', false) | |
.options({ | |
processCssUrls: false, | |
}) | |
.vue() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment