0.0.4 • Published 4 years ago
@passageidentity/passage-web v0.0.4
passage-web
Project setup
npm install
or
# Install packages and respect the package-lock.json file
npm ciCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildLints and fixes files
npm run lint
or
npm run prettier:fixA note on styles for passage-web
Since the component will be embedded on other sites, it is extremely important to not use units that are relative, such as rem.
No style rules should use rem units.
SVG Images
SVG images are injected inline via vue-cli-plugin-svg. Usage looks like this:
<!-- Notice after the file path, there is '?data' at the end. -->
<!-- This tells Vue CLI to convert the SVG during the build process. -->
<img src="@/assets/images/icon-laptop-user.svg?data" />