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