-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.old.txt
39 lines (38 loc) · 1.33 KB
/
webpack.old.txt
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
module.exports = [{
mode: 'development',
entry: './wwwroot/lib/mtd-ordermaker/main/scss/mtd-app.scss',
output: {
path: __dirname + '/wwwroot/lib/mtd-ordermaker/main',
filename: 'js/mtd-app.js',
},
module: {
rules: [
{
test: /\.scss$/,
use: [
{
loader: 'file-loader',
options: {
name: 'css/mtd-app.css',
},
},
{ loader: 'extract-loader' },
{ loader: 'css-loader' },
{
loader: 'sass-loader',
options: {
sassOptions: {
includePaths: [path.join(path.dirname(module.filename), 'node_modules')
]
},
// Prefer Dart Sass
implementation: require('sass'),
// See https://github.com/webpack-contrib/sass-loader/issues/804
webpackImporter: false,
},
},
]
}
]
},
}];