Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit e986c70

Browse files
committed
Fix bundled file
1 parent c955c61 commit e986c70

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ namespace :frontend do
2424
p "Bundling frontend for use in browser..."
2525

2626
`yarn webpack --mode production`
27-
`cp dist/action_text_syntax_highlighter.js app/assets/javascripts/action_text_syntax_highlighter.js`
28-
`cp dist/action_text_syntax_highlighter.js.map app/assets/javascripts/action_text_syntax_highlighter.js.map`
27+
`cp dist/index.js app/assets/javascripts/action_text_syntax_highlighter.js`
28+
`cp dist/index.js.map app/assets/javascripts/action_text_syntax_highlighter.js.map`
2929

3030
p "Done!"
3131
end

app/assets/javascripts/action_text_syntax_highlighter.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/javascripts/action_text_syntax_highlighter.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/action_text_syntax_highlighter.js renamed to dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
devtool: "source-map",
66
output: {
77
path: path.resolve(__dirname, "dist"),
8-
filename: "action_text_syntax_highlighter.js",
8+
filename: "index.js",
99
},
1010
resolve: {
1111
extensions: [".js"],

0 commit comments

Comments
 (0)