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;