Skip to content

Commit

Permalink
fix oc-vite-compiler replacement of static
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-devis-agullo committed Nov 9, 2023
1 parent 35713e3 commit fbd1090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oc-vite-compiler/lib/viteView.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function compileView(options) {

const staticFiles = options.componentPackage.oc.files.static;
let staticFolder = Array.isArray(staticFiles) ? staticFiles[0] : staticFiles;
staticFolder = staticFolder.replace(/^\//, '').replace(/\/$/, '');
staticFolder = staticFolder?.replace(/^\//, '').replace(/\/$/, '');
const viewFileName = options.componentPackage.oc.files.template.src;
const componentPath = options.componentPath;
const viewPath = processRelativePath(viewFileName);
Expand Down
2 changes: 1 addition & 1 deletion packages/oc-vite-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oc-vite-compiler",
"version": "2.1.0",
"version": "2.1.1",
"description": "OC-Vite-Compiler",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit fbd1090

Please sign in to comment.