build/utils.js
// 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 (loaders) {
    var sourceLoader = loaders.map(function (loader) {
      var extraParamChar
      if (/\?/.test(loader)) {
        loader = loader.replace(/\?/, '-loader?')
        extraParamChar = '&'
      } else {
        loader = loader + '-loader'
        extraParamChar = '?'
      }
      if (options.modules) {
        loader += extraParamChar + 'modules&importLoaders=1&localIdentName=[local]_[hash:base64:5]'
        extraParamChar = '&'
      }
      return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
    }).join('!')
    if (options.extract) {
      return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
    } else {
      return ['vue-style-loader', sourceLoader].join('!')
    }
  }
function generateLoaders ( loaders ) { var sourceLoader = loaders . map ( function ( loader ) { var extraParamChar if ( / \? / . test ( loader ) ) { loader = loader . replace ( / \? / , '-loader?' ) extraParamChar = '&' } else { loader = loader + '-loader' extraParamChar = '?' } if ( options . modules ) { loader += extraParamChar + 'modules&importLoaders=1&localIdentName=[local]_[hash:base64:5]' extraParamChar = '&' } return loader + ( options . sourceMap ? extraParamChar + 'sourceMap' : '' ) } ) . join ( '!' ) if ( options . extract ) { return ExtractTextPlugin . extract ( 'vue-style-loader' , sourceLoader ) } else { return [ 'vue-style-loader' , sourceLoader ] . join ( '!' ) } }
generate loader string to be used with extract text plugin
generate loader string to be used with extract text plugin
// Make use of css modules // Extract CSS when that option is specified // (which is the case during production build)