mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-21 02:19:44 +00:00
Refactor webpack configuration files to remove unused variables and improve clarity Update dependencies: upgrade express to 5.1.0, mime to 4.0.7, and node-html-parser to 7.0.1 Update electron-related dependencies to latest versions Update dependencies: upgrade proxy-polyfill to ^0.3.2, react-beautiful-dnd to ^13.1.1, react-datetime-picker to ^7.0.1, and various other packages
18 lines
411 B
JavaScript
18 lines
411 B
JavaScript
module.exports = {
|
|
plugins: {
|
|
'postcss-import': {
|
|
resolve: function (id) {
|
|
// Handle ~ imports for node_modules
|
|
if (id.startsWith('~')) {
|
|
try {
|
|
return require.resolve(id.substring(1));
|
|
} catch (e) {
|
|
return id;
|
|
}
|
|
}
|
|
return id;
|
|
}
|
|
},
|
|
cssnano: process.env.NODE_ENV === 'production' ? {} : false,
|
|
},
|
|
};
|