text: const path = require('path')
  
  const cwd = process.cwd()
  
  // 默认配置
  let config = {
    build: {
      src: 'src',
      dist: 'dist',
      temp: 'temp',
      public: 'public',
      paths: {
        styles: 'assets/styles/*.scss',
        scripts: 'assets/scripts/*.js',
        pages: '*.html',
        images: 'assets/images/**',
        fonts: 'assets/fonts/**',
      }
    },
    data:{}
  }
  
  try {
    // 读取项目的配置文件，与默认配置合并
    const loadConfig = require(path.join(cwd, 'pages.config.js'))
    config = Object.assign({}, config, loadConfig)
  } catch (e) {}
  
  module.exports = config