Loader issues

This commit is contained in:
Lani Aung
2021-11-03 18:25:58 -06:00
parent 16dfc040a4
commit fd8858aab3
9 changed files with 2422 additions and 465 deletions
+14 -12
View File
@@ -6,8 +6,6 @@ module.exports = [{
style: "./Styles/main.scss"
},
output: {
// This is necessary for webpack to compile
// But we never use style-bundle.js
filename: 'js/[name].js',
path: path.resolve(__dirname, 'wwwroot'),
},
@@ -27,7 +25,14 @@ module.exports = [{
},
},
{loader: 'extract-loader'},
{loader: 'css-loader'},
{
loader: 'css-loader',
options: {
// What the **fuck**
// https://github.com/peerigon/extract-loader/issues/111#issuecomment-948791524
esModule: false
}
},
{
loader: 'sass-loader',
options: {
@@ -38,18 +43,15 @@ module.exports = [{
webpackImporter: false,
sassOptions: {
includePaths: ['./node_modules'],
sourceMap: true
},
sourceMap: true
},
},
]
}
],
},
{test: /\.tsx?$/, loader: "ts-loader"}
]
],
},
stats: {
// Display bailout reasons
optimizationBailout: true,
},
}];
errorDetails: true
}
}]