X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=webpack.mix.js;h=50fc31d4e4898126304260fcfde7ef9b798a330d;hb=5dc7faa01ad96732b0ea126e945f215a9d0490af;hp=0e8f447ff04a7872590bca3cdcbdf9c5a236490f;hpb=1e66c7e499436c85204e89ea5167178b5b6e74d3;p=alttp.git diff --git a/webpack.mix.js b/webpack.mix.js index 0e8f447..50fc31d 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -11,7 +11,7 @@ const mix = require('laravel-mix'); | */ -mix.js('resources/js/app.js', 'public/js') +mix.js('resources/js/index.js', 'public/js') .react() .sass('resources/sass/app.scss', 'public/css') .extract([ @@ -30,15 +30,6 @@ mix.js('resources/js/app.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', @@ -67,6 +58,7 @@ mix.js('resources/js/app.js', 'public/js') 'nanoclone', 'object-assign', 'object-inspect', + 'openseadragon', 'performance-now', 'process', 'prop-types', @@ -88,8 +80,6 @@ mix.js('resources/js/app.js', 'public/js') 'react-router-dom', 'react-smooth', 'react-transition-group', - 'recharts', - 'recharts-scale', 'reduce-css-calc', 'regenerator-runtime', 'resize-observer-polyfill', @@ -104,4 +94,9 @@ mix.js('resources/js/app.js', 'public/js') 'yup', ]) .sourceMaps(true) - .version(); + .version() + .webpackConfig({ + output: { + chunkFilename: 'js/[chunkhash].js', + }, + });