Changeset View
Changeset View
Standalone View
Standalone View
src/webpack.mix.js
Show All 16 Lines | |||||
mix.webpackConfig({ | mix.webpackConfig({ | ||||
resolve: { | resolve: { | ||||
alias: { | alias: { | ||||
'jquery$': 'jquery/dist/jquery.slim.js', | 'jquery$': 'jquery/dist/jquery.slim.js', | ||||
} | } | ||||
} | } | ||||
}) | }) | ||||
mix.js('resources/js/user/app.js', 'public/js/user.js').vue() | |||||
.js('resources/js/admin/app.js', 'public/js/admin.js').vue() | |||||
.js('resources/js/reseller/app.js', 'public/js/reseller.js').vue() | |||||
mix.before(() => { | mix.before(() => { | ||||
spawn('php', ['resources/build/before.php'], { stdio: 'inherit' }) | spawn('php', ['resources/build/before.php'], { stdio: 'inherit' }) | ||||
}) | }) | ||||
mix.js('resources/js/user.js', 'public/js').vue() | |||||
.js('resources/js/admin.js', 'public/js').vue() | |||||
glob.sync('resources/themes/*/', {}).forEach(fromDir => { | glob.sync('resources/themes/*/', {}).forEach(fromDir => { | ||||
const toDir = fromDir.replace('resources/themes/', 'public/themes/') | const toDir = fromDir.replace('resources/themes/', 'public/themes/') | ||||
mix.sass(fromDir + 'app.scss', toDir) | mix.sass(fromDir + 'app.scss', toDir) | ||||
.sass(fromDir + 'document.scss', toDir); | .sass(fromDir + 'document.scss', toDir); | ||||
}) | }) |