From f6d7833243a6219b89e07a0ffd4c94bbc1f647c1 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 18 Apr 2019 21:39:31 -0500 Subject: [PATCH] chore: include THREE globally for proton.three --- webpack.client.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.client.config.js b/webpack.client.config.js index 45549fb..d5a0d05 100644 --- a/webpack.client.config.js +++ b/webpack.client.config.js @@ -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;