You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

elm-css-webpack-loader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elm-css-webpack-loader

elm-css webpack loader

2.0.2
Source
npm
Version published
Weekly downloads
11
-56%
Maintainers
1
Weekly downloads
 
Created
Source

Elm CSS loader Travis build Status

Webpack loader for elm-css library

Installation

$ npm install --save-dev elm-css-webpack-loader

Usage

Documentation: Using loaders

In your webpack.config.js file:

module.exports = {
  module: {
    loaders: [{
      test: /Stylesheets\.elm$/,
      loader: "style!css!elm-css-webpack"
    }]
  }
};

See the examples section below for the complete webpack configuration.

Options:

Cache (default false)

You can add cache=true to the loader:

  ...
  loader: "elm-css-webpack?cache=true"
  ...

If you add this, when using npm run watch, the loader will only load the dependencies at startup. This could be performance improvement, but know that new files won't be picked up and so won't be watched until you restart webpack.

This flag doesn't matter if you don't use watch mode.

Notes

Example

You can find an example in the example folder. To run dev server:

$ npm install
$ npm run start

Note about noParse

Even though elm-webpack-loader suggests to set the noParse option, elm-css-webpack-loader requires this option, otherwise it won't work correctly.

Revisions

1.0.0

Initial release, compatible with elm-css-2.0.0

FAQs

Package last updated on 22 Oct 2016

Did you know?

Socket

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.

Install

Related posts