You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/dll.config.js

37 lines
772 B

7 years ago
const webpack = require('webpack');
var HtmlWebPackPlugin = require("html-webpack-plugin");
const dllName = "dll"
var path = require('path');
const vendors = [
"three",
"lodash",
"dat.gui",
7 years ago
"react",
"react-dom",
"stats.js"
7 years ago
];
module.exports = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: dllName + '.js',
library: dllName,
},
entry: {
"lib": vendors,
},
resolve: {
alias: {
"dat.gui": path.resolve(__dirname, './node_modules/dat.gui/build/dat.gui.js'),
7 years ago
}
},
devtool: "source-map",
plugins: [
new webpack.DllPlugin({
path: 'manifest.json',
name: dllName,
context: __dirname,
})
],
};