Ver Fonte

Removed splitting in chunks which was checked in by mistake. Fixed issue #241 where no library has been exported for web view

Benjamin Giesinger há 7 anos atrás
pai
commit
44ed881d86
2 ficheiros alterados com 6 adições e 5 exclusões
  1. 2 1
      webpack.common.js
  2. 4 4
      webpack.prod.js

+ 2 - 1
webpack.common.js

@@ -9,7 +9,8 @@ module.exports = {
     },
     output: {
         path: path.resolve(__dirname, 'build'),
-        filename: '[name].js'
+        filename: '[name].js',
+        library: "opensheetmusicdisplay"
     },
     resolve: {
         // Add '.ts' and '.tsx' as a resolvable extension.

+ 4 - 4
webpack.prod.js

@@ -18,10 +18,10 @@ module.exports = merge(common, {
     mode: 'production',
     optimization: {
         minimize: true,
-        splitChunks: {
-            chunks: 'all',
-            name: false
-        }
+        // splitChunks: {
+        //     chunks: 'all',
+        //     name: false
+        // }
     },
     plugins: [
         // build optimization plugins