mirror of https://gitee.com/cf-fz/WebCAD.git
parent
3ffb640c12
commit
e125e5ec9f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,34 @@
|
||||
const webpack = require('webpack');
|
||||
var HtmlWebPackPlugin = require("html-webpack-plugin");
|
||||
|
||||
const dllName = "dll"
|
||||
var path = require('path');
|
||||
const vendors = [
|
||||
"three",
|
||||
"lodash",
|
||||
"dat.gui"
|
||||
];
|
||||
|
||||
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')
|
||||
}
|
||||
},
|
||||
devtool: "source-map",
|
||||
plugins: [
|
||||
new webpack.DllPlugin({
|
||||
path: 'manifest.json',
|
||||
name: dllName,
|
||||
context: __dirname,
|
||||
})
|
||||
],
|
||||
};
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue