准备aurelia应用程序进行生产

时间:2016-12-03 18:21:12

标签: javascript gulp aurelia

我正在尝试导出我的aureliajs应用程序。我在命令export.js中使用的gulp export文件包含以下行:

// this file provides a list of unbundled files that
// need to be included when exporting the application
// for production.
module.exports = {
  'list': [
    'index.html',
    'config.js',
    'favicon.ico',
    'LICENSE',
    'jspm_packages/system.js',
    'jspm_packages/system-polyfills.js',
    'jspm_packages/system-csp-production.js'
  ],
  // this section lists any jspm packages that have
  // unbundled resources that need to be exported.
  // these files are in versioned folders and thus
  // must be 'normalized' by jspm to get the proper
  // path.
  'normalize': [
    [
      // include font-awesome.css and its fonts files
      'font-awesome', [
        '/css/font-awesome.min.css',
        '/fonts/*'
      ]
    ], [
      // include bootstrap's font files
      'bootstrap', [
        '/fonts/*',
        '/css/*'
      ]
    ], [
      'bluebird', [
        '/js/browser/bluebird.min.js'
      ]
    ], [
      'cropperjs', [
        '/dist/cropper.css'
      ]
    ], [
      'moment', [
        '/**.*',
        '/locale/**.*'
      ]
    ], [
      'aurelia-validatejs', [
        '/**.*'
      ]
    ], [
      'aurelia-chart', [
        '/**.*',
        '/**/*.js',
        '/**/*.html'
      ]
    ]
  ]
};

我在导出aurelia-chart插件时遇到问题。无论我做什么,它永远不会被复制到export/jspm_packages/npm文件夹。如何让它表现得正常?

0 个答案:

没有答案