MyWeChatVideoDownloader/config-overrides.js
2024-01-03 16:16:00 +08:00

18 lines
424 B
JavaScript

const { override, addLessLoader, adjustStyleLoaders } = require('customize-cra');
module.exports = override(
addLessLoader({
lessOptions: {
javascriptEnabled: true,
},
}),
adjustStyleLoaders(({ use: [, , postcss] }) => {
const postcssOptions = postcss.options;
postcss.options = { postcssOptions };
}),
function (config) {
config.target = 'electron-renderer';
return config;
},
);