更新资产管道等级后

时间:2018-08-28 22:42:19

标签: reactjs gradle asset-pipeline

我最近从Gradle中更新了插件,

classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.12.1'
classpath 'com.bertramlabs.plugins:less-asset-pipeline:2.12.1'
classpath 'net.errbuddy.plugins:babel-asset-pipeline:1.4.5'

收件人

classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.15.0'
    classpath 'com.bertramlabs.plugins:less-asset-pipeline:2.15.0'
    classpath 'net.errbuddy.plugins:babel-asset-pipeline:1.4.5'

当我使用旧版本时,我的应用程序很好,当我使用新版本时,到处都出现以下错误

requirejs.onError Error: Script error for "react", needed by

我的资产配置保持不变

assets {
//    packagePlugin = true
    configOptions = [
            babel : [
                    enabled       : true,
                    processJsFiles: false,
                    options       : [
                            nonStandard: true,
                            modules    : 'amd',
                            moduleIds  : true
                    ]
            ],
            plugin: [
                    'bsb-pattern-library': [
                            excludes: ['**/*.less'],
                            includes: ["${assetPipelineBrand}*.less", 'themes/*.less', 'pattern-library-core.less']
                    ],
                    'bsb-core-web'       : [
                            excludes: ["**/*.spec.es6", "**/*.spec.js"]
                    ]
            ]
    ]
    minifyOptions = [languageMode: 'ES6', targetLanguage: 'ES5', angularPass: true]
    minifyJs = true
    minifyCss = true
    excludes = ['**/*.less']
    includes = ['application.less', 'theme.less', "${assetPipelineBrand}*.less", 'themes/*.less', 'pattern-library-core.less']
}

我如何使我的应用程序与新版本一起使用,我真的只想要并发功能,而不能在旧版本中使用它。

0 个答案:

没有答案