webpack-style-preset

Easily add CSS, SASS to your webpack config

Usage no npm install needed!

<script type="module">
  import webpackStylePreset from 'https://cdn.skypack.dev/webpack-style-preset';
</script>

README

webpack-style-preset

Easily add CSS, SASS to your webpack config

Install

npm install --save-dev webpack-style-preset

for Yarn:

yarn add --dev webpack-style-preset

Add to Webpack config

const withSass = require("webpack-style-preset");

// your base webpack config goes here
const baseConfig = {
    /// ...
};

// extend webpack config
const config = withSass(baseConfig);

module.exports = config;