function generateLoaders (loader, loaderOptions) {
    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader];

    if (loader) {
      loaders.push({
        loader: loader + '-loader',
        options: Object.assign({}, loaderOptions, {
          sourceMap: options.sourceMap
        })
      });
    }

    // Extract CSS when that option is specified
    // (which is the case during production build)
    if (options.extract) {
      return ExtractTextPlugin.extract({
        use: loaders,
        fallback: 'vue-style-loader'
      });
    } else {
      return ['vue-style-loader'].concat(loaders);
    }
  }
// generate loader string to be used with extract text plugin
generate loader string to be used with extract text plugin
generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) {
    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader];
    if (loader) {
      loaders.push({
        loader: loader + '-loader',
        options: Object.assign({}, loaderOptions, {
          sourceMap: options.sourceMap
        })
      });
    }
    if (options.extract) {
      return ExtractTextPlugin.extract({
        use: loaders,
        fallback: 'vue-style-loader'
      });
    } else {
      return ['vue-style-loader'].concat(loaders);
    }
  }
function generateLoaders ( loader , loaderOptions ) { const loaders = options . usePostCSS ? [ cssLoader , postcssLoader ] : [ cssLoader ] ; if ( loader ) { loaders . push ( { loader : loader + '-loader' , options : Object . assign ( { } , loaderOptions , { sourceMap : options . sourceMap } ) } ) ; } if ( options . extract ) { return ExtractTextPlugin . extract ( { use : loaders , fallback : 'vue-style-loader' } ) ; } else { return [ 'vue-style-loader' ] . concat ( loaders ) ; } }
generate loader string to be used with extract text plugin
generate loader string to be used with extract text plugin
// Extract CSS when that option is specified // (which is the case during production build)