
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
ember-cli-postcss
Advanced tools
Use postcss to process your css with a large selection of JavaScript plug-ins.
Use postcss to process your css
with a large selection of plug-ins.
npm install --save-dev ember-cli-postcss
The add-on can be used in two ways:
Note: it’s possible to use both compile and filter.
This step will look for either app.css
or <project-name>.css
in your styles directory. Additional files to be processed can be defined in the output paths configuration object for your application:
var app = new EmberApp(defaults, {
outputPaths: {
app: {
html: 'index.html',
css: {
'app': '/assets/app.css',
'print': '/assets/print.css'
}
}
}
}
This step will run at the end of the build process on all CSS files, including the merged vendor.css
file and any CSS imported into the Broccoli tree by add-ons.
There are two steps to setting up postcss with ember-cli-postcss
:
postcssOptions
object in ember-cli-build.js
The postcssOptions
object should have a “compile” and “filter” (optional) property, which will have the properties enabled
and plugins
, which is an array of objects that contain a module
property and an options
property:
postcssOptions: {
enabled: true, // defaults to true
compile: {
plugins: [
{
module: <module>,
options: {
...
}
}
]
},
filter: {
enabled: true, // defaults to false
plugins: [
{
module: <module>,
options: {
...
}
}
]
}
}
Install the autoprefixer plugin:
npm i --save-dev autoprefixer
Specify some plugins in your ember-cli-build.js
:
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var autoprefixer = require('autoprefixer');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
postcssOptions: {
compile: {
enabled: false
},
filter: {
enbaled: true,
plugins: [
{
module: autoprefixer,
options: {
browsers: ['last 2 version']
}
}
]
}
}
});
return app.toTree();
};
FAQs
Use postcss to process your css with a large selection of JavaScript plug-ins.
The npm package ember-cli-postcss receives a total of 18,270 weekly downloads. As such, ember-cli-postcss popularity was classified as popular.
We found that ember-cli-postcss 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.