Ember-cli禁用选择文件的缩小

时间:2015-10-08 20:53:20

标签: javascript ember.js ember-cli minify

无论如何,我可以在select css / js文件上禁用缩小功能吗?这是我的ember-cli-build.js代码:

/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var pickFiles = require('broccoli-static-compiler');
module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    // Add options here
    LOG_TRANSITIONS: true,
    sourcemaps: {
      enabled: true,
      extensions: ['js', 'bower_components/tinymce/tinymce.min.js', 'bower_components/tinymce/jquery.tinymce.min.js', '**/*.min.js', '**/*.min.css', '**/*.woff', '**/*.ttf']
    },
    // import all the assets (technically you could be more precise in picking just the plugins and themes that you require, but for brevity's sake this will work)

  });
  // import the main file
  app.import('bower_components/tinymce/tinymce.min.js', {destDir: 'assets/tinymce'});

  // import the jquery integration file
  app.import('bower_components/tinymce/jquery.tinymce.min.js', {destDir: 'assets/tinymce'});

  // import all the assets (technically you could be more precise in picking just the plugins and themes that you require, but for brevity's sake this will work)
  var tinymceAssets = pickFiles('bower_components/tinymce/', {
    srcDir: '/',
    files: ['**/*.min.js', '**/*.min.css', '**/*.woff', '**/*.ttf'],
    destDir: '/tinymce',
  });
  // Use `app.import` to add additional libraries to the generated
  // output files.
  //
  // If you need to use different assets in different
  // environments, specify an object as the first parameter. That
  // object's keys should be the environment name and the values
  // should be the asset to use in that environment.
  //
  // If the library that you are including contains AMD or ES6
  // modules that you would like to import into your application
  // please specify an object with the list of modules as keys
  // along with the exports of each module as its value.

  // app.import('bower_components/bootstrap/dist/css/bootstrap.css');
  // app.import('vendor/css/app.css');
  // app.import('vendor/js/jquery.markitup.js');
  // app.import('vendor/js/custom.js');
  app.import('bower_components/jquery.cookie/jquery.cookie.js');
  app.import('bower_components/moment/moment.js');
  return app.toTree([tinymceAssets]);
};

任何与TinyMCE有关的事情我需要得到改善......其余的需要缩小......有没有人有解决方案?否则,我将有非常长的构建时间,我真的不能拥有...谢谢!

0 个答案:

没有答案