![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ember-cli-misvg
Advanced tools
Ember addon to combine SVG files into one JS file and inject it through dedicated component into application. It makes maintenance of SVGs easy and deliver the best possible interaction with SVGs.
ember-cli-misvg
Ember addon to combine SVG files into one JS file and inject it through dedicated component into application. It makes maintenance of SVGs easy and deliver the best possible interaction with SVGs.
ember install ember-cli-misvg
Define where your SVG icons are in public
directory (sourceDirs
param) and where the output
should be placed (outputFile
param). Like this:
// ember-cli-build.js
let app = new EmberApp(defaults, {
misvg: {
files: {
sourceDirs: 'public/img/svg-icon',
outputFile: '/assets/svg-sprites.js'
},
misvgOptions: {
indent: 2
}
}
});
Optionally you can also pass misvg configuration options via misvgOptions
property.
Add generated script file that contains sprites to your project:
// index.html
<script src="{{rootURL}}assets/svg-sprites.js"></script>
Use misvg-icon
component with the name
of SVG icon (in align with the filename). You can also scale it via width
and height
params.
{{misvg-icon name="star" width=20 height=20}}
git clone https://github.com/vastec/misvg.git
cd ember-cli-misvg
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
0.3.0 (June 18, 2018)
ember-cli@3.1.4
, ember-source@3.1.0
FAQs
Ember addon to combine SVG files into one JS file and inject it through dedicated component into application. It makes maintenance of SVGs easy and deliver the best possible interaction with SVGs.
The npm package ember-cli-misvg receives a total of 2 weekly downloads. As such, ember-cli-misvg popularity was classified as not popular.
We found that ember-cli-misvg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.