Skip to content

Commit

Permalink
build: Add vue-template-babel-compiler to use optional chaining. Fix …
Browse files Browse the repository at this point in the history
…whitespace removal, closes #106
  • Loading branch information
jpmckinney committed Jan 20, 2023
1 parent 5db9f25 commit 7f6a186
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
64 changes: 64 additions & 0 deletions frontend/package-lock.json

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

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"sass": "~1.32.0",
"sass-loader": "^11.1.1",
"vue-cli-plugin-fontawesome": "^0.3.1",
"vue-template-babel-compiler": "^2.0.0",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
Expand Down
12 changes: 12 additions & 0 deletions frontend/vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
chainWebpack: config => {
config.module
.rule("vue")
.use("vue-loader")
.tap(options => {
options.compiler = require("vue-template-babel-compiler");
options.compilerOptions.whitespace = "preserve";
return options;
});
}
};

0 comments on commit 7f6a186

Please sign in to comment.