FleetCart/Modules/Translation/webpack.mix.js

12 lines
640 B
JavaScript
Raw Normal View History

2023-06-11 12:14:03 +00:00
let mix = require('laravel-mix');
let execSync = require('child_process').execSync;
mix.js(`${__dirname}/Resources/assets/admin/js/main.js`, `${__dirname}/Assets/admin/js/translation.js`)
.styles([
`${__dirname}/node_modules/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css`,
], `${__dirname}/Assets/admin/css/translation.css`)
.copy(`${__dirname}/node_modules/x-editable/dist/bootstrap3-editable/img`, `${__dirname}/Assets/admin/img`)
.then(() => {
execSync(`npm run rtlcss ${__dirname}/Assets/admin/css/translation.css ${__dirname}/Assets/admin/css/translation.rtl.css`);
});