Sfoglia il codice sorgente

webpack output as a library

Sadick 8 anni fa
parent
commit
8f3e5dfafd
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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')
   },