Skip to content

Commit 43420b1

Browse files
author
Max
committed
Resolve vulnerability with sass
1 parent 899db16 commit 43420b1

File tree

9 files changed

+17
-19
lines changed

9 files changed

+17
-19
lines changed

MicroFrontendsIframe.code-workspace

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@
55
}
66
],
77
"settings": {
8-
"eslint.autoFixOnSave": true,
98
"editor.formatOnSave": true,
109
"javascript.format.enable": false,
11-
"eslint.alwaysShowStatus": true
10+
"eslint.alwaysShowStatus": true,
11+
"editor.codeActionsOnSave": {
12+
"source.fixAll.eslint": true,
13+
"source.fixAll.stylelint": true
14+
},
15+
"stylelint.validate": [
16+
"css",
17+
"less",
18+
"postcss",
19+
"scss"
20+
]
1221
}
13-
}
22+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ This libray implements micro-frontends with iframes and react components.
88

99
## Usage
1010

11-
In the example folder there is an example of usage of this library.
11+
In the example folder there is an example of usage of this library (to test it run `npm i` and `npm start` from that folder).

example/child/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
"webpack-cli": "^3.3.4",
3434
"webpack-dev-server": "^3.7.1"
3535
}
36-
}
36+
}

example/child/src/App.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import './App.scss';
32
import MicroIframe, { pluginInterceptor, isCalledByParent } from 'micro-frontend-iframe';
43

54
MicroIframe.init('CHILD-ID');

example/child/src/App.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/child/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
</head>
99

10-
<body>
10+
<body style="background-color: aquamarine">
1111
<div id="root"></div>
1212
</body>
1313

example/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@
3131
"babel-loader": "^8.0.6",
3232
"babel-preset-env": "^1.7.0",
3333
"concurrently": "^4.1.1",
34-
"css-loader": "^3.1.0",
3534
"html-loader": "^0.5.5",
3635
"html-webpack-plugin": "^3.2.0",
37-
"node-sass": "^4.12.0",
38-
"sass-loader": "^7.1.0",
39-
"style-loader": "^0.23.1",
4036
"webpack": "^4.34.0",
4137
"webpack-cli": "^3.3.4",
4238
"webpack-dev-server": "^3.7.1"

example/src/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ class App extends React.Component {
2323
return (
2424
<React.Fragment>
2525
<h1>Micro-frontend-iframe Example!</h1>
26+
<button type="button" onClick={this.sendToChild}>Send message to child</button>
27+
<br/><br/>
2628
<IFrame
2729
src="http://localhost:8082"
2830
onReceiveMessage={this.receiveFromChild}
2931
/>
30-
<button type="button" onClick={this.sendToChild}>Send message to child</button>
3132
{messageFromChild && (
3233
<p>
3334
<b>Child says:</b>

example/webpack.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ module.exports = {
2121
},
2222
},
2323
},
24-
{
25-
test: /\.scss$/,
26-
use: ['style-loader', 'css-loader', 'sass-loader'],
27-
},
2824
{
2925
test: /\.html$/,
3026
use: [

0 commit comments

Comments
 (0)