2018-09-26 21:16:35 -04:00
|
|
|
const path = require('path');
|
|
|
|
|
2018-09-27 15:44:30 -04:00
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
2018-12-12 12:05:19 -05:00
|
|
|
|
2018-12-27 18:29:57 -05:00
|
|
|
const makeConfig = require('./webpack.makeConfig.js');
|
2018-12-12 12:05:19 -05:00
|
|
|
|
2018-12-27 18:29:57 -05:00
|
|
|
module.exports = makeConfig({
|
|
|
|
name: 'renderer',
|
|
|
|
useReact: true,
|
|
|
|
babelPaths: [
|
|
|
|
path.resolve(__dirname, 'src', 'renderer')
|
2018-10-18 22:03:56 -04:00
|
|
|
],
|
2018-09-27 15:44:30 -04:00
|
|
|
plugins: [
|
2018-12-27 18:29:57 -05:00
|
|
|
new CopyWebpackPlugin([{
|
|
|
|
from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),
|
|
|
|
to: 'static'
|
|
|
|
}])
|
|
|
|
]
|
|
|
|
});
|