fix: rename SASS worker

This commit is contained in:
Valeriy S
2018-11-12 13:52:31 +03:00
committed by Stuart Taylor
parent ecadba95db
commit ea060b13f2
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ export const babelTransformer = cond([
[stubTrue, identity]
]);
const sass = new WorkerExecutor('sass');
const sassWorker = new WorkerExecutor('sass-compile');
const htmlSassTransformCode = file => {
const div = document.createElement('div');
@ -84,7 +84,7 @@ const htmlSassTransformCode = file => {
if (styleTags.length > 0) {
return Promise.all([].map.call(styleTags, async style => {
style.type = 'text/css';
style.innerHTML = await sass.execute(style.innerHTML, 2000);
style.innerHTML = await sassWorker.execute(style.innerHTML, 2000);
})).then(() => (
vinyl.transformContents(() => div.innerHTML, file)
));

View File

@ -6,7 +6,7 @@ module.exports = (env = {}) => {
mode: __DEV__ ? 'development' : 'production',
entry: {
'frame-runner': './src/client/frame-runner.js',
sass: './src/client/workers/sass.js'
'sass-compile': './src/client/workers/sass-compile.js'
},
devtool: __DEV__ ? 'inline-source-map' : 'source-map',
output: {