5 Star 52 Fork 17

wd3322 / vue2-to-composition-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
wd3322 提交于 2023-05-08 09:00 . config
const path = require('path')
const webpack = require('webpack')
module.exports = {
devtool: false,
entry: './src/main.ts',
output: {
path: path.resolve(__dirname, './lib'),
publicPath: '/lib/',
filename: 'index.js',
libraryTarget: 'umd',
umdNamedDefine: true
},
module: {
rules: [{
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
use: [{
loader: 'ts-loader', /* https://github.com/TypeStrong/ts-loader */
options: {
configFile: path.resolve(__dirname, './tsconfig.json'),
appendTsSuffixTo: [/\.vue$/],
transpileOnly: true,
}
}]
}]
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
})
],
target: ['web', 'es5']
}
1
https://gitee.com/wd3322/vue2-to-composition-api.git
git@gitee.com:wd3322/vue2-to-composition-api.git
wd3322
vue2-to-composition-api
vue2-to-composition-api
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891