Skip to content

Commit

Permalink
RTLCSS Source Maps
Browse files Browse the repository at this point in the history
  • Loading branch information
SmushyTaco committed Jan 15, 2025
1 parent 6f67f14 commit 33b1249
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 17 deletions.
74 changes: 59 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,12 @@ const scriptConfig = {
filename: '[name].css',
} ),
// RtlCssPlugin to generate RTL CSS files.
new RtlCssPlugin( '[name]-rtl.css' ),
new RtlCssPlugin( {
fileNameMap: {
'.css': '[name]-rtl.css',
},
sourceMap: ! isProduction,
} ),
// React Fast Refresh.
hasReactFastRefresh && new ReactRefreshWebpackPlugin(),
// WP_NO_EXTERNALS global variable controls whether scripts' assets get
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"react-refresh": "^0.14.0",
"read-pkg-up": "^7.0.1",
"resolve-bin": "^0.4.0",
"rtlcss-webpack-plugin": "npm:@smushytaco/rtlcss-webpack-plugin@^1.0.9",
"rtlcss-webpack-plugin": "npm:@smushytaco/rtlcss-webpack-plugin@^2.0.0",
"sass": "^1.54.0",
"sass-loader": "^16.0.3",
"schema-utils": "^4.2.0",
Expand Down

0 comments on commit 33b1249

Please sign in to comment.