Fix initial camera on marker
All checks were successful
Deploy Spot / deploy (push) Successful in 34s
All checks were successful
Deploy Spot / deploy (push) Successful in 34s
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = (env, argv) => {
|
||||
filename: isDev ? 'assets/[name].js' : 'assets/[name].[contenthash:8].js',
|
||||
chunkFilename: isDev ? 'assets/[name].js' : 'assets/[name].[contenthash:8].js',
|
||||
publicPath: './',
|
||||
clean: {
|
||||
clean: isDev ? false : {
|
||||
keep: /^(index\.php|files|geo|images\/icons)(\/.*)?$/
|
||||
}
|
||||
},
|
||||
@@ -92,7 +92,7 @@ module.exports = (env, argv) => {
|
||||
}
|
||||
},
|
||||
generator: {
|
||||
filename: 'assets/images/[name].[contenthash:8][ext]'
|
||||
filename: isDev ? 'assets/images/[name][ext]' : 'assets/images/[name].[contenthash:8][ext]'
|
||||
}
|
||||
}]
|
||||
},
|
||||
@@ -115,8 +115,12 @@ module.exports = (env, argv) => {
|
||||
chunkGroups: mapChunkGroups(stats.compilation.chunkGroups)
|
||||
};
|
||||
|
||||
fs.mkdirSync(path.resolve(PUBLIC, 'assets'), { recursive: true });
|
||||
fs.writeFileSync(path.resolve(PUBLIC, 'assets', 'entrypoints.json'), JSON.stringify(manifest, null, '\t'));
|
||||
const manifestPath = path.resolve(PUBLIC, 'assets', 'entrypoints.json');
|
||||
const tmpManifestPath = `${manifestPath}.tmp`;
|
||||
|
||||
fs.mkdirSync(path.dirname(manifestPath), { recursive: true });
|
||||
fs.writeFileSync(tmpManifestPath, JSON.stringify(manifest, null, '\t'));
|
||||
fs.renameSync(tmpManifestPath, manifestPath);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user