X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=webpack.mix.js;h=60085abec5e04a85b5ad1d4f000ae5ebf7e0f388;hb=7414634d59c94fc5fa2cf9c080324e6c901fa1c9;hp=b38b23209f69282ba51aa57a148456b04cf33814;hpb=75b3b5826c781e47b3db693fa6d3d17f67c79e56;p=alttp.git diff --git a/webpack.mix.js b/webpack.mix.js index b38b232..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([ @@ -25,24 +25,60 @@ mix.js('resources/js/app.js', 'public/js') '@restart/hooks', '@restart/ui', 'axios', - 'file-saver', + 'bootstrap', + 'call-bind', + 'classnames', 'formik', + 'history', 'i18next', 'i18next-browser-languagedetector', + 'invariant', 'laravel-echo', - 'localforage', 'lodash', + 'lodash-es', 'moment', 'numeral', + 'property-expr', 'pusher-js', + 'qs', 'react', 'react-bootstrap', 'react-dom', + 'react-fast-compare', 'react-i18next', + 'react-is', + 'react-lifecycles-compat', + 'react-resize-detector', + 'react-router', 'react-router-bootstrap', 'react-router-dom', + 'react-smooth', + 'react-transition-group', + 'reduce-css-calc', + 'regenerator-runtime', + 'resize-observer-polyfill', + 'scheduler', + 'side-channel', + 'tiny-warning', 'toastr', + 'toposort', + 'uncontrollable', + 'void-elements', + 'warning', 'yup', ]) .sourceMaps(true) .version(); +//if (mix.inProduction()) { + mix.webpackConfig({ + output: { + chunkFilename: 'js/chunks/[name].[chunkhash].js', + }, + }); +//} else { +// mix.webpackConfig({ +// output: { +// asyncChunks: false, +// }, +// }); +//}