X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=webpack.mix.js;h=60085abec5e04a85b5ad1d4f000ae5ebf7e0f388;hb=7414634d59c94fc5fa2cf9c080324e6c901fa1c9;hp=714cba7ecf343cd0741bc3e4a77202910c425d7f;hpb=18424fc6de2fc902ee2b2d3143955081263adff4;p=alttp.git diff --git a/webpack.mix.js b/webpack.mix.js index 714cba7..60085ab 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([ @@ -28,54 +28,19 @@ mix.js('resources/js/app.js', 'public/js') 'bootstrap', 'call-bind', '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', - 'eventemitter3', - 'fast-equals', - 'file-saver', 'formik', - 'function-bind', - 'get-intrinsic', - 'has', - 'has-symbols', 'history', - 'hoist-non-react-statics', - 'html-escaper', - 'html-parse-stringify', 'i18next', 'i18next-browser-languagedetector', 'invariant', - 'jquery', 'laravel-echo', - 'localforage', 'lodash', 'lodash-es', 'moment', 'numeral', - 'nanoclone', - 'object-assign', - 'object-inspect', - 'openseadragon', - 'performance-now', - 'process', - 'prop-types', - 'prop-types-extra', 'property-expr', 'pusher-js', 'qs', - 'raf', 'react', 'react-bootstrap', 'react-dom', @@ -89,8 +54,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', @@ -106,3 +69,16 @@ mix.js('resources/js/app.js', 'public/js') ]) .sourceMaps(true) .version(); +//if (mix.inProduction()) { + mix.webpackConfig({ + output: { + chunkFilename: 'js/chunks/[name].[chunkhash].js', + }, + }); +//} else { +// mix.webpackConfig({ +// output: { +// asyncChunks: false, +// }, +// }); +//}