We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Thanks for great gulp package.
How can I use this gulp package with scss files
Thanks
The text was updated successfully, but these errors were encountered:
#78 Can you take a look on this? if this solve your issue.
Sorry, something went wrong.
const sass = require('node-sass'); const inlineNg2Template = require('gulp-inline-ng2-template'); const styleProcessor = (stylePath, ext, styleFile, callback) => { if (ext[0] === '.scss') { let sassObj = sass.renderSync({ file: stylePath }); if (sassObj && sassObj['css']){ styleFile = sassObj.css.toString('utf8'); } } return callback(null, styleFile); }; const OPTIONS = { base: 'src', useRelativePaths: true, styleProcessor: styleProcessor }; const ng2InlineTemplate = () => { return inlineNg2Template(OPTIONS); }; exports.ng2InlineTemplate = ng2InlineTemplate;
No branches or pull requests
Hi,
Thanks for great gulp package.
How can I use this gulp package with scss files
Thanks
The text was updated successfully, but these errors were encountered: