Skip to content

Commit cf7066f

Browse files
committed
Remove mini-css-extract-plugin: not recognized by CodeSandbox?
1 parent 562839c commit cf7066f

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

examples/Bootstrap4/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66

77
<title>Example Bootstrap4</title>
8-
9-
<link rel="stylesheet" href="App.css">
108
</head>
119

1210
<body>

examples/Bootstrap4/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"style-loader": "latest",
4949
"css-loader": "latest",
5050
"sass-loader": "latest",
51-
"mini-css-extract-plugin": "latest",
5251

5352
"webpack-cli": "latest",
5453
"webpack": "latest",

examples/Bootstrap4/webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @ts-check
22

33
const path = require('path');
4-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
54

65
module.exports = {
76
entry: {
@@ -13,10 +12,6 @@ module.exports = {
1312
filename: '[name].js'
1413
},
1514

16-
plugins: [
17-
new MiniCssExtractPlugin({filename: '[name].css'})
18-
],
19-
2015
resolve: {
2116
extensions: ['.js', '.jsx']
2217
},
@@ -27,11 +22,9 @@ module.exports = {
2722
{ test: /\.js$/, loader: 'source-map-loader' },
2823
{ test: /\.html$/, loader: 'file-loader', options: {name: '[path][name].[ext]'} },
2924
{
30-
// FIXME Don't know how to make source maps work
31-
// See SourceMap not working with Webpack 4.8.1 https://github.com/webpack-contrib/mini-css-extract-plugin/issues/141
3225
test: /\.scss$/,
3326
use: [
34-
MiniCssExtractPlugin.loader,
27+
{ loader: 'style-loader', options: {sourceMap: true} },
3528
{ loader: 'css-loader', options: {sourceMap: true} },
3629
{ loader: 'sass-loader', options: {sourceMap: true} }
3730
]

0 commit comments

Comments
 (0)