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

43 lines
817 B

const webpack = require('webpack');
const dllName = "dll"
var path = require('path');
const vendors = [
"@blueprintjs/core",
"css-element-queries",
"golden-layout",
"jquery",
"lodash",
"mobx",
"mobx-react",
"mobx-state-tree",
"react",
"react-addons-css-transition-group",
"react-color",
"react-dom",
"stats.js",
"three",
"verb-nurbs-web",
"xaop"
];
module.exports = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: dllName + '.js',
library: dllName,
},
entry: {
"lib": vendors,
},
resolve: {
},
devtool: "source-map",
plugins: [
new webpack.DllPlugin({
path: 'manifest.json',
name: dllName,
context: __dirname,
})
],
};