scratch-desktop/webpack.renderer.additions.js

20 lines
481 B
JavaScript
Raw Normal View History

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