Skip to content

Commit

Permalink
remove css
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Rivet committed Apr 2, 2021
1 parent 25cd293 commit cd31950
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 294 deletions.
261 changes: 0 additions & 261 deletions packages/dash-html-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions packages/dash-html-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"babel-loader": "^8.2.2",
"cheerio": "^0.22.0",
"cross-env": "^7.0.3",
"css-loader": "^5.2.0",
"es-check": "^5.2.3",
"eslint": "^7.22.0",
"eslint-plugin-import": "^2.22.1",
Expand All @@ -53,7 +52,6 @@
"react-docgen": "^5.3.1",
"request": "^2.88.2",
"string": "^3.3.3",
"style-loader": "^2.0.0",
"webpack": "^5.28.0",
"webpack-cli": "^4.5.0",
"webpack-serve": "^3.2.0"
Expand Down
32 changes: 1 addition & 31 deletions packages/dash-html-components/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,37 +60,7 @@ module.exports = (env, argv) => {
use: {
loader: 'babel-loader',
},
},
{
test: /\.css$/,
use: [
{
loader: 'style-loader',
options: {
insert: function insertAtTop(element) {
var parent = document.querySelector('head');
// eslint-disable-next-line no-underscore-dangle
var lastInsertedElement =
window._lastElementInsertedByStyleLoader;

if (!lastInsertedElement) {
parent.insertBefore(element, parent.firstChild);
} else if (lastInsertedElement.nextSibling) {
parent.insertBefore(element, lastInsertedElement.nextSibling);
} else {
parent.appendChild(element);
}

// eslint-disable-next-line no-underscore-dangle
window._lastElementInsertedByStyleLoader = element;
}
}
},
{
loader: 'css-loader',
},
],
},
}
],
},
devtool
Expand Down

0 comments on commit cd31950

Please sign in to comment.