text: 'use strict';
  let path = require('path');
  let defaultSettings = require('./defaults');
  
  // Additional npm or bower modules to include in builds
  // Add all foreign plugins you may need into this array
  // @example:
  // let npmBase = path.join(__dirname, '../node_modules');
  // let additionalPaths = [ path.join(npmBase, 'react-bootstrap') ];
  let additionalPaths = [];
  
  module.exports = {
    additionalPaths: additionalPaths,
    port: defaultSettings.port,
    debug: true,
    devtool: 'eval',
    // 入口文件输出配置
    output: {
      path: path.join(__dirname, '/../dist/assets'),
      filename: 'app.js',
      publicPath: defaultSettings.publicPath
    },
    devServer: {
      contentBase: './src/',
      historyApiFallback: true,
      hot: true,
      port: defaultSettings.port,
      publicPath: defaultSettings.publicPath,
      noInfo: false
    },
    // 其它解决方案配置
    resolve: {
      // 自动扩展文件名后缀名,意味着我们require模块可以省略不写后缀名
      extensions: ['', '.js', '.jsx'],
      // 模块别名定义,方便后续直接引用别名,无须写绝对路径
      alias: {
        actions: `${defaultSettings.srcPath}/actions/`,
        components: `${defaultSettings.srcPath}/components/`,
        sources: `${defaultSettings.srcPath}/sources/`,
        stores: `${defaultSettings.srcPath}/stores/`,
        styles: `${defaultSettings.srcPath}/styles/`,
        config: `${defaultSettings.srcPath}/config/` + process.env.REACT_WEBPACK_ENV
      }
    },
    postcss: function () {
      return [
        require('autoprefixer')({
          browsers: ['last 2 versions', 'ie >= 8']
        })
      ];
    },
    module: {}
  };
  