output.js 377 B

1234567891011121314151617
  1. module.exports = (isEnvDevelopment, distPath, publicPath) => {
  2. const output = {
  3. path: isEnvDevelopment ? undefined : distPath,
  4. filename: isEnvDevelopment
  5. ? 'bundle.js'
  6. : 'reverse.js',
  7. publicPath,
  8. }
  9. if (!isEnvDevelopment) {
  10. output.library = 'vue-reverse'
  11. output.libraryTarget = 'umd'
  12. output.umdNamedDefine = true
  13. }
  14. return output
  15. }