chore: include THREE globally for proton.three
This commit is contained in:
parent
ccddb4e465
commit
f6d7833243
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user