mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-23 06:02:30 -05:00
78d75dc3cf
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')
|
|
]
|
|
}
|
|
);
|