mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-03-10 21:08:01 -04:00
Instead of overriding rules we don't want by matching the test exactly, we now explicitly delete rules we don't want before adding any of our custom rules.
16 lines
391 B
JavaScript
16 lines
391 B
JavaScript
const path = require('path');
|
|
|
|
const makeConfig = require('./webpack.makeConfig.js');
|
|
|
|
module.exports = defaultConfig =>
|
|
makeConfig(
|
|
defaultConfig,
|
|
{
|
|
name: 'main',
|
|
useReact: false,
|
|
disableDefaultRulesForExtensions: ['js'],
|
|
babelPaths: [
|
|
path.resolve(__dirname, 'src', 'main')
|
|
]
|
|
}
|
|
);
|