scratch-desktop/webpack.renderer.additions.js
2018-12-28 00:48:24 -08:00

19 lines
481 B
JavaScript

const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const makeConfig = require('./webpack.makeConfig.js');
module.exports = makeConfig({
name: 'renderer',
useReact: true,
babelPaths: [
path.resolve(__dirname, 'src', 'renderer')
],
plugins: [
new CopyWebpackPlugin([{
from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),
to: 'static'
}])
]
});