mirror of
https://github.com/coder/code-server.git
synced 2025-09-22 17:23:30 +08:00
Make assets unique (#518)
* Make all assets unique All CSS and JavaScript files have unique names now. I also moved the login to the /login path in order to ensure the HTML for each page is also unique. * Explicitly include assets to cache
This commit is contained in:
@ -13,6 +13,11 @@ module.exports = (options = {}) => ({
|
||||
externals: {
|
||||
fsevents: "fsevents",
|
||||
},
|
||||
output: {
|
||||
path: path.join(options.dirname || __dirname, "out"),
|
||||
chunkFilename: `${options.name || "general"}.[name].[hash:6].js`,
|
||||
filename: `${options.name || "general"}.[name].[hash:6].js`
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
loader: "string-replace-loader",
|
||||
|
Reference in New Issue
Block a user