Skip to content

Commit

Permalink
Fix style loading for webpack bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoscielniak committed Apr 11, 2019
1 parent fe01d15 commit 5234b34
Show file tree
Hide file tree
Showing 5 changed files with 18,719 additions and 39 deletions.
18,705 changes: 18,704 additions & 1 deletion build/index.js

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions build/style.dist.css

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -61,12 +61,13 @@
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"mini-css-extract-plugin": "^0.4.5",
"node-sass": "^4.10.0",
"node-sass": "^4.11.0",
"prettier": "^1.16.4",
"pretty-quick": "^1.10.0",
"prop-types": "^15.6.2",
"react-dom": "^16.6.3",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2"
},
Expand Down
15 changes: 1 addition & 14 deletions webpack.config.js
@@ -1,5 +1,4 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
entry: './src/index.js',
Expand All @@ -8,12 +7,6 @@ module.exports = {
filename: 'index.js',
libraryTarget: 'commonjs2',
},
plugins: [
new MiniCssExtractPlugin({
filename: 'style.dist.css',
chunkFilename: 'style.[id].css',
}),
],
module: {
rules: [
{
Expand All @@ -26,13 +19,7 @@ module.exports = {
},
{
test: /\.*css$/,
use: [
{
loader: MiniCssExtractPlugin.loader,
},
'css-loader',
'sass-loader',
],
use: ['style-loader', 'css-loader', 'sass-loader'],
},
],
},
Expand Down
16 changes: 12 additions & 4 deletions yarn.lock
Expand Up @@ -5274,10 +5274,10 @@ node-pre-gyp@^0.10.0:
semver "^5.3.0"
tar "^4"

node-sass@^4.10.0:
version "4.10.0"
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.10.0.tgz#dcc2b364c0913630945ccbf7a2bbf1f926effca4"
integrity sha512-fDQJfXszw6vek63Fe/ldkYXmRYK/QS6NbvM3i5oEo9ntPDy4XX7BcKZyTKv+/kSSxRtXXc7l+MSwEmYc0CSy6Q==
node-sass@^4.11.0:
version "4.11.0"
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.11.0.tgz#183faec398e9cbe93ba43362e2768ca988a6369a"
integrity sha512-bHUdHTphgQJZaF1LASx0kAviPH7sGlcyNhWade4eVIpFp6tsn7SV8xNMTbsQFpEV9VXpnwTTnNYlfsZXgGgmkA==
dependencies:
async-foreach "^0.1.3"
chalk "^1.1.1"
Expand Down Expand Up @@ -6982,6 +6982,14 @@ strip-json-comments@^2.0.1, strip-json-comments@~2.0.1:
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo=

style-loader@^0.23.1:
version "0.23.1"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.23.1.tgz#cb9154606f3e771ab6c4ab637026a1049174d925"
integrity sha512-XK+uv9kWwhZMZ1y7mysB+zoihsEj4wneFWAS5qoiLwzW0WzSqMrrsIy+a3zkQJq0ipFtBpX5W3MqyRIBF/WFGg==
dependencies:
loader-utils "^1.1.0"
schema-utils "^1.0.0"

supports-color@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
Expand Down

0 comments on commit 5234b34

Please sign in to comment.