mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 13:42:27 -05:00
25 lines
738 B
JavaScript
25 lines
738 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||
|
|
||
|
const makeConfig = require('./webpack.makeConfig.js');
|
||
|
|
||
|
module.exports = defaultConfig =>
|
||
|
makeConfig(
|
||
|
defaultConfig,
|
||
|
{
|
||
|
name: 'renderer',
|
||
|
useReact: true,
|
||
|
disableDefaultRulesForExtensions: ['js', 'jsx', 'css', 'svg', 'png', 'wav', 'gif', 'jpg'],
|
||
|
babelPaths: [
|
||
|
path.resolve(__dirname, 'src', 'renderer')
|
||
|
],
|
||
|
plugins: [
|
||
|
new CopyWebpackPlugin([{
|
||
|
from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),
|
||
|
to: 'static'
|
||
|
}])
|
||
|
]
|
||
|
}
|
||
|
);
|