forked from signalapp/Signal-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 193
/
sass.config.js
41 lines (37 loc) · 972 Bytes
/
sass.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const sass = require('sass'); // Prefer `dart-sass`
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
output: {
path: path.resolve(__dirname, 'stylesheets', 'dist'),
},
entry: './stylesheets/manifest.scss',
mode: 'production',
module: {
rules: [
{
test: /\.s[ac]ss$/i,
use: [
// Creates `main.css` compiling all of the compiled css files
MiniCssExtractPlugin.loader,
// Translates CSS into CommonJS
'css-loader',
// Compiles Sass to CSS
{
loader: 'sass-loader',
options: {
implementation: sass,
},
},
],
},
],
},
plugins: [].concat(
new MiniCssExtractPlugin({
filename: 'manifest.css',
})
),
};