mpvue-ts-loader

1.0.13 • Public • Published

修改说明

原始仓库mpvue-loader

添加了对TS支持,使用参考generator-mpvue-project

使用

添加webpack配置的plugin

new webpack.LoaderOptionsPlugin({
    test: /\.(vue|ts)$/,
    options: {
        ts: {
            appendTsSuffixTo: [/\.vue$/]
        }
    }
})

添加webpack配置的rule

{
    test: /\.ts$/,
    use: [
        {
            loader: 'babel-loader'
        },
        {
            loader: 'mpvue-ts-loader',
            options: {
                checkMPEntry: true
            }
        }
    ]
}

Readme

Keywords

Package Sidebar

Install

npm i mpvue-ts-loader

Weekly Downloads

1

Version

1.0.13

License

MIT

Unpacked Size

61.3 kB

Total Files

32

Last publish

Collaborators

  • thundernet8