mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 06:43:45 +00:00
Avoid contenthash in development (#7423)
GitOrigin-RevId: 5a52a1af1f6add4dea135639f0ec5a4577dba124
This commit is contained in:
parent
9c036b1d90
commit
9e6b1fbb67
1 changed files with 25 additions and 0 deletions
|
@ -10,6 +10,31 @@ module.exports = merge(base, {
|
||||||
// Enable accurate source maps for dev
|
// Enable accurate source maps for dev
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
|
||||||
|
// Load entrypoints without contenthash in filename
|
||||||
|
output: {
|
||||||
|
filename: 'js/[name].js',
|
||||||
|
},
|
||||||
|
|
||||||
|
// Load assets without contenthash in filename
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.(woff|woff2)$/,
|
||||||
|
type: 'asset/resource',
|
||||||
|
generator: {
|
||||||
|
filename: 'fonts/[name][ext]',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.(svg|gif|png|jpg|pdf)$/,
|
||||||
|
type: 'asset/resource',
|
||||||
|
generator: {
|
||||||
|
filename: 'images/[name][ext]',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
// Extract CSS to a separate file (rather than inlining to a <style> tag)
|
// Extract CSS to a separate file (rather than inlining to a <style> tag)
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
|
|
Loading…
Reference in a new issue