Skip to content

thundernet8/mpvue-ts-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

修改说明

原始仓库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
            }
        }
    ]
}

About

mpvue loader with ts support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%