text: 'use strict';
  const path = require('path');
  const srcPath = path.join(__dirname, '/../src');
  const dfltPort = 8000;
  function getDefaultModules() {
    return {
      preLoaders: [{
          test: /\.(js|jsx)$/,
          include: srcPath,
          loader: 'eslint-loader'
        }],
      loaders: [
        {
          test: /\.css$/,
          loader: 'style-loader!css-loader!postcss-loader'
        },
        {
          test: /\.sass/,
          loader: 'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded&indentedSyntax'
        },
        {
          test: /\.scss/,
          loader: 'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded'
        },
        {
          test: /\.less/,
          loader: 'style-loader!css-loader!postcss-loader!less-loader'
        },
        {
          test: /\.styl/,
          loader: 'style-loader!css-loader!postcss-loader!stylus-loader'
        },
        {
          test: /\.(png|jpg|gif)$/,
          loader: 'url-loader?limit=8192'
        },
        {
          test: /\.(mp4|ogg)$/,
          loader: 'file-loader'
        },
        {
          test:/\.json$/,
          loader:'json-loader'
        },
        {
          test   : /\.woff|\.woff2|\.svg|.eot|\.ttf/,
          loader : 'url?prefix=font/&limit=10000'
        }
      ]
    };
  }
  module.exports = {
    srcPath: srcPath,
    publicPath: '/assets/',
    port: dfltPort,
    getDefaultModules: getDefaultModules,
    postcss: function () {
      return [
        require('autoprefixer')({browser:["last 2 versions",">=ie8"]})
      ];
    }
  };
  