]> git.localhorst.tv Git - alttp.git/blobdiff - webpack.mix.js
use slug for SG twitch channels
[alttp.git] / webpack.mix.js
index 0e8f447ff04a7872590bca3cdcbdf9c5a236490f..60085abec5e04a85b5ad1d4f000ae5ebf7e0f388 100644 (file)
@@ -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,53 +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',
-               'performance-now',
-               'process',
-               'prop-types',
-               'prop-types-extra',
                'property-expr',
                'pusher-js',
                'qs',
-               'raf',
                'react',
                'react-bootstrap',
                'react-dom',
@@ -88,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',
@@ -105,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,
+//             },
+//     });
+//}