Open noraj opened 5 years ago
In the npm package if I do npm i docute there is a dist folder whic contains:
npm i docute
dist
The link href is /docute.css and the script src is /docute.js. But adding a front / will break the app if it is served from a subfolder, eg. https://example.org/site/index.html because https://example.org/docute.js won't exist, it will be https://example.org/site/docute.js.
/docute.css
/docute.js
/
So I suggest to just put src="docute.js" and same for the css.
src="docute.js"
In the npm package if I do
npm i docute
there is adist
folder whic contains:The link href is
/docute.css
and the script src is/docute.js
. But adding a front/
will break the app if it is served from a subfolder, eg. https://example.org/site/index.html because https://example.org/docute.js won't exist, it will be https://example.org/site/docute.js.So I suggest to just put
src="docute.js"
and same for the css.