X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=webpack.mix.js;h=60085abec5e04a85b5ad1d4f000ae5ebf7e0f388;hb=7414634d59c94fc5fa2cf9c080324e6c901fa1c9;hp=50fc31d4e4898126304260fcfde7ef9b798a330d;hpb=237ebc69c5eb4fbfe226c4dcdc9711d7b18ddcd2;p=alttp.git diff --git a/webpack.mix.js b/webpack.mix.js index 50fc31d..60085ab 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -28,45 +28,19 @@ mix.js('resources/js/index.js', 'public/js') 'bootstrap', 'call-bind', 'classnames', - 'crc-32', - 'css-unit-converter', - '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', @@ -94,9 +68,17 @@ mix.js('resources/js/index.js', 'public/js') 'yup', ]) .sourceMaps(true) - .version() - .webpackConfig({ + .version(); +//if (mix.inProduction()) { + mix.webpackConfig({ output: { - chunkFilename: 'js/[chunkhash].js', + chunkFilename: 'js/chunks/[name].[chunkhash].js', }, }); +//} else { +// mix.webpackConfig({ +// output: { +// asyncChunks: false, +// }, +// }); +//}