Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 43200a2844 | |||
| 188921c247 |
@@ -89,11 +89,19 @@ module.exports = {
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
chunks: "async",
|
chunks: "all",
|
||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
vendors: {
|
vendors: {
|
||||||
test: /[\\/]node_modules[\\/]/,
|
test: /[\\/]node_modules[\\/]/,
|
||||||
name: "vendor",
|
// cacheGroupKey here is `commons` as the key of the cacheGroup
|
||||||
|
name(module, chunks, cacheGroupKey) {
|
||||||
|
const moduleFileName = module
|
||||||
|
.identifier()
|
||||||
|
.split("/")
|
||||||
|
.reduceRight((item) => item);
|
||||||
|
const allChunksNames = chunks.map((item) => item.name).join("~");
|
||||||
|
return `${cacheGroupKey}-${allChunksNames}-${moduleFileName}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -934,10 +934,8 @@ const _renderStaticScene = ({
|
|||||||
strokeGrid(
|
strokeGrid(
|
||||||
context,
|
context,
|
||||||
appState.gridSize,
|
appState.gridSize,
|
||||||
-Math.ceil(appState.zoom.value / appState.gridSize) * appState.gridSize +
|
appState.scrollX,
|
||||||
(appState.scrollX % appState.gridSize),
|
appState.scrollY,
|
||||||
-Math.ceil(appState.zoom.value / appState.gridSize) * appState.gridSize +
|
|
||||||
(appState.scrollY % appState.gridSize),
|
|
||||||
appState.zoom,
|
appState.zoom,
|
||||||
normalizedWidth / appState.zoom.value,
|
normalizedWidth / appState.zoom.value,
|
||||||
normalizedHeight / appState.zoom.value,
|
normalizedHeight / appState.zoom.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user