Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

A plugin that will create a scss file with breakpoints from a Drupal theme breakpoints YAML file.

License

Notifications You must be signed in to change notification settings

oddhill/drupal-breakpoints-scss-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal breakpoints scss webpack plugin

Build Status Coverage Status

This Webpack plugins lets you turn the breakpoints YAML-file from a Drupal theme into variables in a scss-file.

To achieve this this the plugin uses the following package drupal-breakpoints-scss.

Install

npm install --save-dev @oddhill/drupal-breakpoints-scss-webpack-plugin
# OR
yarn add --dev @oddhill/drupal-breakpoints-scss-webpack-plugin

Example usage with Webpack

const DrupalBreakpointsScssPlugin = require('@oddhill/drupal-breakpoints-scss-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new DrupalBreakpointsScssPlugin({
      entry: 'theme.breakpoints.yml',
      output: 'breakpoints.scss',
    }),
  ],
  // ...
}

Options

The options for the plugin are required, both the entry and output options must be defined.

  • entry: Path to the file containing the theme breakpoints. (Required)
  • output: Path of the file to write the scss variables to. (Required)

About

A plugin that will create a scss file with breakpoints from a Drupal theme breakpoints YAML file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published