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.
Small WebPack based SCSS / Javascript compiler
Install the package
npm install --save aviate
Open package.json
and add:
{
"scripts": {
"dev": "aviate",
"build": "aviate build"
}
}
Create the aviate.config.js
Aviate is configured using the aviate.config.js
file at the root of your project.
const path = require('path')
module.exports = {
// Defaults to http://localhost:9000 when not provided
host: 'http://localhost:9000/',
// Location to copy production assets to
distLocations: [
path.join(__dirname, 'your/production/assets/directory')
],
// Entirely optional if you don't have any custom postcss plugins
// This example shows how to add css-mqpacker
// Default plugins are outlined below
postCss(loader, defaultPlugins) {
const defaultPlugins = defaultPlugins()
defaultPlugins.push(require('css-mqpacker')())
return defaultPlugins
},
// Allows you to define custom WebPack properties
// `config` is a WebPack config object
// `config.entry` is required
decorateConfig(config) {
config.entry = Object.assign({}, config.entry, {
// When using scss that never changes (external dependencies) should be added to the array to greatly improve compilation time
'styles': [
path.join(__dirname, 'web/app/themes/wecustom/assets/styles/main.scss')
],
// All javascript goes through Babel. So you can write es2015 (ES6) code. It also includes all requirements for compiling React
'javascript': [
path.join(__dirname, 'web/app/themes/wecustom/assets/javascript/main.js')
],
})
return config
}
}
These plugins are included by default:
FAQs
Small WebPack based SCSS / Javascript compiler
The npm package aviate receives a total of 25 weekly downloads. As such, aviate popularity was classified as not popular.
We found that aviate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.