mirror of
https://github.com/tenrok/vue-context.git
synced 2026-05-17 07:09:36 +03:00
16 lines
605 B
JavaScript
16 lines
605 B
JavaScript
const mix = require('laravel-mix');
|
|
const fs = require('fs');
|
|
const scriptsPath = __dirname + '/../docs/scripts';
|
|
|
|
// Cleanup the old scripts, since we'll be re-hashing them.
|
|
fs.rmdirSync(scriptsPath, { recursive: true });
|
|
|
|
mix
|
|
.js('js/basic/index.js', 'dist/vue-context-basic-demos.js')
|
|
.js('js/advanced/index.js', 'dist/vue-context-advanced-demos.js')
|
|
.js('js/props/index.js', 'dist/vue-context-props-demos.js')
|
|
|
|
.copy('dist/vue-context-basic-demos.js', scriptsPath)
|
|
.copy('dist/vue-context-advanced-demos.js', scriptsPath)
|
|
.copy('dist/vue-context-props-demos.js', scriptsPath);
|