old_contents: var path = require('path');
  var fs = require('fs');
  var nodeExternals = require('webpack-node-externals');
  var Components = require('../components.json');
  var saladConfig = require('../packages/theme-default/salad.config.json');
  
  var utilsList = fs.readdirSync(path.resolve(__dirname, '../src/utils'));
  var mixinsList = fs.readdirSync(path.resolve(__dirname, '../src/mixins'));
  var transitionList = fs.readdirSync(path.resolve(__dirname, '../src/transitions'));
  var externals = {};
  
  Object.keys(Components).forEach(function(key) {
    externals[`element-ui/packages/${key}`] = `element-ui/lib/${key}`;
  });
  
  externals['element-ui/src/locale'] = 'element-ui/lib/locale';
  utilsList.forEach(function(file) {
    file = path.basename(file, '.js');
    externals[`element-ui/src/utils/${file}`] = `element-ui/lib/utils/${file}`;
  });
  mixinsList.forEach(function(file) {
    file = path.basename(file, '.js');
    externals[`element-ui/src/mixins/${file}`] = `element-ui/lib/mixins/${file}`;
  });
  transitionList.forEach(function(file) {
    file = path.basename(file, '.js');
    externals[`element-ui/src/transitions/${file}`] = `element-ui/lib/transitions/${file}`;
  });
  
  externals = [Object.assign({
    vue: 'vue'
  }, externals), nodeExternals()];
  
  exports.externals = externals;
  
  exports.alias = {
    main: path.resolve(__dirname, '../src'),
    packages: path.resolve(__dirname, '../packages'),
    examples: path.resolve(__dirname, '../examples'),
    'element-ui': path.resolve(__dirname, '../')
  };
  
  exports.vue = {
    root: 'Vue',
    commonjs: 'vue',
    commonjs2: 'vue',
    amd: 'vue'
  };
  
  exports.jsexclude = /node_modules|utils\/popper\.js|utils\/date.\js/;
  
  exports.postcss = function(webapck) {
    saladConfig.features.partialImport = {
      addDependencyTo: webapck
    };
    return [
      require('postcss-salad')(saladConfig)
    ];
  };
  
new_contents: var path = require('path');
  var fs = require('fs');
  var nodeExternals = require('webpack-node-externals');
  var Components = require('../components.json');
  var saladConfig = require('../packages/theme-default/salad.config.json');
  
  var utilsList = fs.readdirSync(path.resolve(__dirname, '../src/utils'));
  var mixinsList = fs.readdirSync(path.resolve(__dirname, '../src/mixins'));
  var transitionList = fs.readdirSync(path.resolve(__dirname, '../src/transitions'));
  var externals = {};
  
  Object.keys(Components).forEach(function(key) {
    console.log(1111111, key)
    externals[`nb-element/packages/${key}`] = `element-ui/lib/${key}`;
  });
  
  externals['nb-element/src/locale'] = 'element-ui/lib/locale';
  utilsList.forEach(function(file) {
    file = path.basename(file, '.js');
    externals[`nb-element/src/utils/${file}`] = `element-ui/lib/utils/${file}`;
  });
  mixinsList.forEach(function(file) {
    file = path.basename(file, '.js');
    externals[`nb-element/src/mixins/${file}`] = `element-ui/lib/mixins/${file}`;
  });
  transitionList.forEach(function(file) {
    file = path.basename(file, '.js');
    externals[`nb-element/src/transitions/${file}`] = `element-ui/lib/transitions/${file}`;
  });
  
  externals = [Object.assign({
    vue: 'vue'
  }, externals), nodeExternals()];
  
  exports.externals = externals;
  
  exports.alias = {
    main: path.resolve(__dirname, '../src'),
    packages: path.resolve(__dirname, '../packages'),
    examples: path.resolve(__dirname, '../examples'),
    'element-ui': path.resolve(__dirname, '../')
  };
  
  exports.vue = {
    root: 'Vue',
    commonjs: 'vue',
    commonjs2: 'vue',
    amd: 'vue'
  };
  
  exports.jsexclude = /node_modules|utils\/popper\.js|utils\/date.\js/;
  
  exports.postcss = function(webapck) {
    saladConfig.features.partialImport = {
      addDependencyTo: webapck
    };
    return [
      require('postcss-salad')(saladConfig)
    ];
  };
  
subject: fix build