mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 01:59:57 +00:00
* Add basic history handling (#288) * Move history management to Compress component * Remove unused pathname property from history * Rename history listener functions * Use history.back instead of history.replace * Support going forward in history. Persist last selected file in runtime * Add netlify redirects file * Use 301 status code for redirect * Cleanup _redirects file * Use 200 status code for redirects * Simplify onPopState function * Always redirect to 301 with url rewrite * Remove redundant history function * Remove file check on render. Call openEditor synchronously * Use pushState only if user is on the initial screen. Mount history listener in constructor * Simplify openEditor condition * Update early return condition * Rolling abstractions back into the main component
This commit is contained in:
committed by
Jake Archibald
parent
3245987113
commit
129c33fa12
@@ -251,6 +251,11 @@ module.exports = async function (_, env) {
|
||||
filename: '_headers',
|
||||
}),
|
||||
|
||||
isProd && new AssetTemplatePlugin({
|
||||
template: path.join(__dirname, '_redirects.ejs'),
|
||||
filename: '_redirects',
|
||||
}),
|
||||
|
||||
new ScriptExtHtmlPlugin({
|
||||
inline: ['first']
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user