chore: include THREE globally for proton.three

This commit is contained in:
cha0s 2019-04-18 21:39:31 -05:00
parent ccddb4e465
commit f6d7833243

View File

@ -1,6 +1,7 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const config = require('./webpack.common.config');
@ -48,5 +49,8 @@ config.node = {
config.plugins.push(new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'client', 'index.html'),
}));
config.plugins.push(new webpack.ProvidePlugin({
THREE: 'three',
}));
module.exports = config;