Changeset View
Changeset View
Standalone View
Standalone View
src/webpack.mix.js
Show All 15 Lines | |||||
mix.webpackConfig({ | mix.webpackConfig({ | ||||
output: { | output: { | ||||
publicPath: process.env.MIX_ASSET_PATH, | publicPath: process.env.MIX_ASSET_PATH, | ||||
// Make sure chunks are also put into the public/js/ folder | // Make sure chunks are also put into the public/js/ folder | ||||
chunkFilename: "js/[name].js" | chunkFilename: "js/[name].js" | ||||
}, | }, | ||||
optimization: { | optimization: { | ||||
splitChunks: { | splitChunks: { | ||||
// Disable chunking, so we have one chunk.js instead of chunk.js + vendor~chunk.js | // Disable chunking, so we have one chunk.js instead of chunk.js + vendor~chunk.js | ||||
maxAsyncRequests: 1 | maxAsyncRequests: 1 | ||||
} | } | ||||
}, | }, | ||||
resolve: { | resolve: { | ||||
alias: { | alias: { | ||||
'jquery$': 'jquery/dist/jquery.slim.js', | 'jquery$': 'jquery/dist/jquery.slim.js', | ||||
} | } | ||||
} | } | ||||
}) | }) | ||||
Show All 15 Lines |