1 Star 3 Fork 3

smallwei / avue-plugin-print

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.js 690 Bytes
一键复制 编辑 原始数据 按行查看 历史
smallwei 提交于 2021-04-28 10:49 . init
const path = require('path');
const resolve = p => {
const base = p.split('/')[0];
return path.resolve(__dirname, './', p);
};
module.exports = {
mode: 'production',
entry: resolve('src/index.js'),
output: {
path: resolve('dist'),
filename: 'index.js',
libraryExport: "default",
libraryTarget: 'umd',
library: '$Print',
umdNamedDefine: true,
globalObject: 'this'
},
module: {
rules: [
{
test: /\.js$/,
include: process.cwd(),
exclude: /node_modules/,
loader: 'babel-loader'
}]
},
//插件,用于生产模板和各项功能
plugins: [],
//配置webpack开发服务器功能
devServer: {}
}
1
https://gitee.com/smallweigit/avue-plugin-print.git
git@gitee.com:smallweigit/avue-plugin-print.git
smallweigit
avue-plugin-print
avue-plugin-print
master

搜索帮助