mpvue-ts-loader
mpvue single-file component loader for Webpack
Last updated 2 years ago by thundernet8 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mpvue-ts-loader 
SYNC missed versions from official npm registry.

修改说明

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

Current Tags

  • 1.0.13                                ...           latest (2 years ago)

7 Versions

  • 1.0.13                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 1
Last Month 0
Dependencies (17)
Dev Dependencies (35)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |