Skip to content

Commit

Permalink
Remove extra backslash in css <\/style> closing tag (#1481) (minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscno committed Apr 16, 2024
1 parent 8240215 commit e9d0f10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ if (process.env.DEV) {
// Dispose context
ctx.dispose();

// Replace incorrect closing tag in <\/style>
const data = fs.readFileSync('./dist/leaflet-geoman.css', 'utf8');
const result = data.replace(/<\\\/style>/g, '</style>');
fs.writeFileSync('./dist/leaflet-geoman.css', result, 'utf8');

// Copy types
fs.copyFileSync('leaflet-geoman.d.ts', './dist/leaflet-geoman.d.ts');
fs.copyFileSync('./dist/leaflet-geoman.js', './dist/leaflet-geoman.min.js');
Expand Down

0 comments on commit e9d0f10

Please sign in to comment.