]> git.localhorst.tv Git - alttp.git/blobdiff - webpack.mix.js
lazy load some stuff
[alttp.git] / webpack.mix.js
index 97835cd93d3a8acebfeab33bbb062c0f66c9746d..50fc31d4e4898126304260fcfde7ef9b798a330d 100644 (file)
@@ -30,15 +30,6 @@ mix.js('resources/js/index.js', 'public/js')
                'classnames',
                'crc-32',
                'css-unit-converter',
-               'd3-array',
-               'd3-color',
-               'd3-format',
-               'd3-interpolate',
-               'd3-path',
-               'd3-scale',
-               'd3-shape',
-               'd3-time',
-               'd3-time-format',
                'decimal.js-light',
                'deepmerge',
                'dom-helpers',
@@ -89,8 +80,6 @@ mix.js('resources/js/index.js', 'public/js')
                'react-router-dom',
                'react-smooth',
                'react-transition-group',
-               'recharts',
-               'recharts-scale',
                'reduce-css-calc',
                'regenerator-runtime',
                'resize-observer-polyfill',
@@ -105,4 +94,9 @@ mix.js('resources/js/index.js', 'public/js')
                'yup',
        ])
        .sourceMaps(true)
-       .version();
+       .version()
+       .webpackConfig({
+               output: {
+                       chunkFilename: 'js/[chunkhash].js',
+               },
+       });