Webpack loader for elm-css library
$ npm install --save-dev elm-css-webpack-loader
moduleexports =module:rules:test: /\.elm$/exclude: /elm-stuff/ /node_modules/ /Stylesheets\.elm$/use:'elm-hot-loader''elm-webpack-loader'test: /Stylesheets\.elm$/use:'style-loader''css-loader''elm-css-webpack-loader';
See the examples section below for the complete webpack configuration.
Cache (default false)
You can add
cache=true to the loader:
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.
You can find an example in the
To run dev server:
$ npm install$ npm run start
You can find a more advanced example at elm-bootstrap-webpack-starter
Note about noParse
Even though elm-webpack-loader suggests to set the
elm-css-webpack-loader requires to parse the stylesheet module.
You can work around the problem by using the following regular expression:
Initial release, compatible with