Browse Source

webpack output as a library

Sadick 7 years ago
parent
commit
8f3e5dfafd
1 changed files with 2 additions and 0 deletions
  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')
   },