0.1.0-alpha.2 • Published 5 years ago
@arcana/sass-loaders-preset v0.1.0-alpha.2
Sass Loaders Preset
Plug n Play Configuration for webpack for loading Sass/Css Files.
This plugin generates webpack loader configuration for supporting Sass/Css with Postcss.
Usage
- Install plugin
yarn add @arcana/sass-loaders-preset
. - Add to your webpack config with your other plugins.
const SassLoaders = require('@arcana/sass-loaders-preset');
module.exports = {
plugins: [new SassLoaders()],
};
Use the same code for both of your configs -
production
anddevelopment
.Remove Image Loader configuration if present. The plugin will automatically handles sass/css files with css/style loader and sass loader with MiniCssExtractPlugin at production.
For SSR add option
{ server: true}
to load css server side.
const SassLoaders = require('@arcana/sass-loaders-preset');
module.exports = {
plugins: [new SassLoaders({ server: true })],
};
0.1.0-alpha.2
5 years ago
0.1.0-alpha.1
5 years ago