You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
561 B
JavaScript
17 lines
561 B
JavaScript
import { optimizeCss } from "./tasks/optimize-css.js";
|
|
import { cwd } from 'process';
|
|
import { join } from 'path';
|
|
|
|
const distPath = join(cwd(), 'dist');
|
|
|
|
// run the optimization creating a .min.css file for each .css file in the dist folder
|
|
// useful to check issues with the css files optimization
|
|
// (in order to use this script, you need to first build the project removing the
|
|
// optimization step from the build.js file)
|
|
optimizeCss(distPath, false).then(() => {
|
|
console.log('Optimization completed');
|
|
}).catch((err) => {
|
|
console.error(err);
|
|
});
|
|
|