|
*/
-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([
'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',
'react-router-dom',
'react-smooth',
'react-transition-group',
- 'recharts',
- 'recharts-scale',
'reduce-css-calc',
'regenerator-runtime',
'resize-observer-polyfill',
])
.sourceMaps(true)
.version();
+//if (mix.inProduction()) {
+ mix.webpackConfig({
+ output: {
+ chunkFilename: 'js/chunks/[name].[chunkhash].js',
+ },
+ });
+//} else {
+// mix.webpackConfig({
+// output: {
+// asyncChunks: false,
+// },
+// });
+//}