mirror of
https://github.com/luochaolun/MyWeChatVideoDownloader.git
synced 2025-04-04 23:06:26 +08:00
18 lines
424 B
JavaScript
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;
|
|
},
|
|
);
|