1 Star 0 Fork 299

RalphWang / framework-admin

forked from backflow / framework-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.dllconfig.js 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const merge = require('webpack-merge')
const webpack = require('webpack')
const path = require('path')
module.exports = Object.assign({}, require('./webpack.config'), { // 沿用项目的各自配置
output: {
path: path.join(__dirname, '/dist'),
filename: '[name].js',
library: '[name]' // 当前Dll的所有内容都会存放在这个参数指定变量名的一个全局变量下,注意与DllPlugin的name参数保持一致
},
entry: {
/*
指定需要打包的js模块
或是css/less/图片/字体文件等资源,但注意要在module参数配置好相应的loader
*/
dll: [
'jquery',
'jstree',
'toastr',
'bootstrap',
'sweetalert'
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
sourceMap: false,
compress: {
warnings: false
},
comments: false
}),
new webpack.LoaderOptionsPlugin({
minimize: true
}),
new webpack.DllPlugin({
context: __dirname,
path: path.join(__dirname, 'manifest.json'),
name: '[name]'
})
]
})
JavaScript
1
https://gitee.com/RalphWang/framework-admin.git
git@gitee.com:RalphWang/framework-admin.git
RalphWang
framework-admin
framework-admin
master

搜索帮助