FleetCart/Modules/Product/webpack.mix.js

9 lines
452 B
JavaScript
Raw Permalink 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/product.js`)
.sass(`${__dirname}/Resources/assets/admin/sass/main.scss`, `${__dirname}/Assets/admin/css/product.css`)
.then(() => {
execSync(`npm run rtlcss ${__dirname}/Assets/admin/css/product.css ${__dirname}/Assets/admin/css/product.rtl.css`);
});