-
Notifications
You must be signed in to change notification settings - Fork 643
Expand file tree
/
Copy pathwebpack.scss.js
More file actions
66 lines (66 loc) · 1.74 KB
/
Copy pathwebpack.scss.js
File metadata and controls
66 lines (66 loc) · 1.74 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = (options, apos) => {
return {
module: {
rules: [
{
test: /\.css$/,
use: [
'vue-style-loader',
// https://github.com/vuejs/vue-style-loader/issues/46#issuecomment-670624576
{
loader: 'css-loader',
options: {
esModule: false,
sourceMap: true
}
}
]
},
// https://github.com/vuejs/vue-style-loader/issues/46#issuecomment-670624576
{
test: /\.s[ac]ss$/,
use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
esModule: false,
sourceMap: true
}
},
{
loader: 'postcss-loader',
options: {
sourceMap: true,
postcssOptions: {
plugins: [
[
'autoprefixer',
{}
]
]
}
}
},
{
loader: 'sass-loader',
options: {
sassOptions: {
// Without this Sass emits a BOM, which postcss 8.5.24+ keeps.
// A BOM in the middle of a stylesheet kills the rule after it.
charset: false
},
sourceMap: false,
// "use" rules must come first or sass throws an error
additionalData: `
@use 'sass:math';
@import "Modules/@apostrophecms/ui/scss/mixins/import-all.scss";
`
}
}
]
}
]
}
};
};