Untitled
unknown
plain_text
a year ago
2.0 kB
2
Indexable
Never
const mix = require('laravel-mix'); const path = require('path'); const {PUBLIC_PATH, tsConfigAliases} = require('./resources/build'); const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); require('laravel-mix-polyfill'); mix.setPublicPath(PUBLIC_PATH); mix.js('resources/js/app_old.js', 'web/js') mix.js('resources/js/processed-payouts.js', 'web/js') .js('resources/js/wm-custom-partnership.js', 'web/js') .js('resources/js/tmpl-editor.js', 'web/js') .js('resources/js/knowledge-create-article.js', 'web/js') .js('resources/js/docs.js', 'web/js') .js('resources/js/edms.js', 'web/js') .js('resources/js/datePickerMask.js', 'web/js'); mix.sass('resources/sass/app.scss', 'web/css').options({processCssUrls: false}); mix.sass('resources/sass/froala.scss', 'web/css').options({processCssUrls: false}); mix.sass('resources/sass/email.scss', 'web/css').options({processCssUrls: false}); mix.sass('resources/sass/print.scss', 'web/css').options({processCssUrls: false}); mix.sass('resources/sass/evidence.scss', 'web/css').options({processCssUrls: false}); mix.sass('resources/sass/cert.scss', 'web/css').options({processCssUrls: false}); mix.copy('node_modules/datatables.net-bs4/css', 'web/css/datatables'); mix.copy('node_modules/jquery-ui/themes', 'web/css/jquery-ui'); mix.copy('node_modules/select2/dist/css', 'web/css/select2'); mix.copy('node_modules/froala-editor', 'web/froala-editor'); mix.copy('node_modules/ace-builds', 'web/ace-builds'); mix.copyDirectory('resources/img', 'web/img'); mix.copyDirectory('node_modules/dm-file-uploader/dist', 'web/dm-file-uploader'); mix .ts('resources/js/src/main.ts', 'web/mix-js') .vue({ version: 3, }); const aliases = {}; tsConfigAliases.forEach(([pathName, pathValue]) => { aliases[pathName] = path.resolve(pathValue); }); mix.alias(aliases) .webpackConfig({ plugins: [ new ForkTsCheckerWebpackPlugin(), ], }) .sourceMaps();