Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey committed Feb 1, 2024
1 parent 2fa0fed commit 6c810d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function config({isServer, isDev, analyze = false}) {
fallback: {
stream: false,
crypto: false,
"url": require.resolve("url/"),
},
extensions: (isServer
? ['.server.tsx', '.server.ts', '.server.js']
Expand Down Expand Up @@ -79,15 +80,15 @@ function config({isServer, isDev, analyze = false}) {
generate: (seed, files) => {
const name = ({name}) => name;
const endsWith = (tail) => ({name}) => name.endsWith(tail);
const runtimeLast = (a, b) => b.chunk.id - a.chunk.id;
const runtimeLast = (a, b) => b.chunk?.id - a.chunk?.id;
return {
js: files.filter(endsWith('.js')).sort(runtimeLast).map(name),
css: files.filter(endsWith('.css')).sort(runtimeLast).map(name),
};
}
}),
new RtlCssPlugin({
filename: 'app.client.rtl.css',
filename: '[name].rtl.css',
hooks: {
pre:function(root, postcss){
root.nodes.forEach((node) => {
Expand Down

0 comments on commit 6c810d0

Please sign in to comment.