Explorar o código

webpack output as a library

Sadick %!s(int64=8) %!d(string=hai) anos
pai
achega
8f3e5dfafd
Modificáronse 1 ficheiros con 2 adicións e 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')
   },