Gathering detailed insights and metrics for ember-cli-autoprefixer
Gathering detailed insights and metrics for ember-cli-autoprefixer
Gathering detailed insights and metrics for ember-cli-autoprefixer
Gathering detailed insights and metrics for ember-cli-autoprefixer
Automatically run your styles through autoprefixer
npm install ember-cli-autoprefixer
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
103 Stars
107 Commits
25 Forks
2 Watching
15 Branches
16 Contributors
Updated on 22 Nov 2021
JavaScript (82.09%)
HTML (16.98%)
Handlebars (0.52%)
CSS (0.41%)
Cumulative downloads
Total Downloads
Last day
-39.6%
3,462
Compared to previous day
Last week
-9.7%
22,839
Compared to previous week
Last month
-3.8%
106,720
Compared to previous month
Last year
32.7%
2,101,910
Compared to previous year
2
27
This addon runs the styles of your Ember CLI-project through Autoprefixer.
ember install ember-cli-autoprefixer
This addon first consumes your browser list config from config/targets.js
. This is the browser list for Babel.
You can manually configure what browsers to target for autoprefixer only. Add the target browsers to your package.json
as per https://github.com/browserslist/browserslist#readme, add a .browserslistrc
file, or configure overrideBrowsersList
in ember-cli-build.js
.
1// ember-cli-build.js 2var app = new EmberApp(defaults, { 3 autoprefixer: { 4 overrideBrowserslist: ['IE11'], 5 cascade: false 6 } 7});
This would prefix styles as required by the two latest version of ios, and disable the cascade (see below).
You can disable Autoprefixer by passing in enabled: false
.
Other options would also go here along with overrideBrowserslist
, enabled
and cascade
.
You can read more about these settings and others over on the Autoprefixer page.
Autoprefixer doesn't play well with .css.map
files, but it will work with embedded source maps. This means there are two options.
If you want to disable CSS sourcemaps from ember-cli-sass update ember-cli-build.js
to
1 sassOptions: { 2 // This tells ember-cli-sass to avoid generating the sourcemap file (like vendor.css.map) 3 sourceMap: false 4 }
Alternatively, you may use embedded source maps. So we tell ember-cli-sass
to embed the sourcemaps and then turn on sourcemaps with autoprefixer which will update the embedded sourcemap after adding prefixes.
1 sassOptions: { 2 sourceMap: true, 3 sourceMapEmbed: true 4 }, 5 autoprefixer: { 6 enabled: true, 7 cascade: true, 8 sourcemap: true 9 }
Also note you can optionally disable in production!
1 const envIsProduction = (process.env.EMBER_ENV === 'production'); 2 3 ... 4 5 sassOptions: { 6 sourceMap: !envIsProduction, 7 sourceMapEmbed: !envIsProduction 8 }, 9 autoprefixer: { 10 enabled: true, 11 cascade: true, 12 sourcemap: !envIsProduction 13 }
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 9/21 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More