Skip to content

Commit 41a7942

Browse files
committed
update styles scripts to generate sep stylesheets for ie and modern
1 parent 9d91096 commit 41a7942

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/postcss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const internetExplorerPostCSS = () => {
3030
autoprefixer({browsers: ['ie 11']}),
3131
cssnano,
3232
];
33-
fs.readFile(`${BUILD_ENV}/react-plotly.js-editor.css`, (err, css) => {
33+
fs.readFile(`${BUILD_ENV}/${fileName}.ie.css`, (err, css) => {
3434
postcss([...ie11_plugins])
3535
.process(css, {
3636
from: dist,

scripts/styles.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const BUILD_ENV = process.env.BUILD_ENV || 'lib';
88

99
const src = 'src/styles/main.scss';
1010
const fileName = `react-plotly.js-editor`;
11-
const dist = `${BUILD_ENV}/${fileName}.css`;
11+
const dist =
12+
SASS_ENV === 'ie'
13+
? `${BUILD_ENV}/${fileName}.ie.css`
14+
: `${BUILD_ENV}/${fileName}.css`;
1215

1316
/**
1417
* Compile our scss to css!

0 commit comments

Comments
 (0)