0 Star 0 Fork 0

orangedays / gantt-elastic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 4.05 KB
一键复制 编辑 原始数据 按行查看 历史
neuronet.io 提交于 2019-04-16 00:19 . moved header to another repo
const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = [
{
mode: 'production',
entry: './src/bundle.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
devtool: 'source-map',
externals: {
vue: 'Vue'
//vuex: 'Vuex'
//dayjs: 'dayjs'
},
optimization: {
minimize: true,
namedModules: false,
minimizer: [
new TerserPlugin({
terserOptions: {
mangle: false
}
})
]
},
/*resolve: {
alias: {
vue$: 'vue/dist/vue.esm.js'
}
},*/
module: {
rules: [
{
test: /\.vue$/,
use: 'vue-loader'
},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
}
]
},
plugins: [new VueLoaderPlugin()]
},
{
mode: 'production',
optimization: {
minimize: false,
minimizer: [
new TerserPlugin({
terserOptions: {
mangle: false
}
})
]
},
entry: './src/GanttElastic.vue',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'GanttElastic.umd.js',
library: 'GanttElastic',
libraryTarget: 'umd',
libraryExport: 'default'
},
devtool: 'source-map',
externals: {
vue: 'Vue'
//vuex: 'Vuex'
//dayjs: 'dayjs'
},
module: {
rules: [
{
test: /\.vue$/,
use: 'vue-loader'
},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
}
]
},
plugins: [new VueLoaderPlugin()]
},
{
mode: 'production',
optimization: {
minimize: true,
namedModules: true,
minimizer: [
new TerserPlugin({
terserOptions: {
mangle: false
}
})
]
},
entry: './src/GanttElastic.vue',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'GanttElastic.umd.min.js',
library: 'GanttElastic',
libraryTarget: 'umd',
libraryExport: 'default'
},
externals: {
vue: 'Vue'
//vuex: 'Vuex'
//dayjs: 'dayjs'
},
module: {
rules: [
{
test: /\.vue$/,
use: 'vue-loader'
},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
}
]
},
plugins: [new VueLoaderPlugin()]
},
{
mode: 'production',
optimization: {
minimize: false
},
entry: './src/GanttElastic.vue',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'GanttElastic.common.js',
library: 'GanttElastic',
libraryTarget: 'commonjs2',
libraryExport: 'default'
},
externals: {
vue: 'Vue'
//vuex: 'Vuex'
//dayjs: 'dayjs'
},
module: {
rules: [
{
test: /\.vue$/,
use: 'vue-loader'
},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
}
]
},
plugins: [new VueLoaderPlugin()]
},
{
mode: 'production',
optimization: {
minimize: true,
namedModules: true,
minimizer: [
new TerserPlugin({
terserOptions: {
mangle: false
}
})
]
},
entry: './src/GanttElastic.vue',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'GanttElastic.common.min.js',
library: 'GanttElastic',
libraryTarget: 'commonjs2',
libraryExport: 'default'
},
externals: {
vue: 'Vue'
//vuex: 'Vuex'
//dayjs: 'dayjs'
},
module: {
rules: [
{
test: /\.vue$/,
use: 'vue-loader'
},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
}
]
},
plugins: [new VueLoaderPlugin()]
}
];
1
https://gitee.com/orangedays/gantt-elastic.git
git@gitee.com:orangedays/gantt-elastic.git
orangedays
gantt-elastic
gantt-elastic
master

搜索帮助