Explorar el Código

webpack output as a library

Sadick hace 8 años
padre
commit
8f3e5dfafd
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      webpack.config.js

+ 2 - 0
webpack.config.js

@@ -5,6 +5,8 @@ module.exports = {
   entry: './src/index.js',
   //output
   output: {
+    library: 'vuepouch',
+    libraryTarget: 'umd',
     filename: 'vuepouch.js',
     path: path.resolve(__dirname, 'dist')
   },