From 0799d1e65ce52f9543ff36da1394d1b77319220c Mon Sep 17 00:00:00 2001 From: ColCh Date: Sun, 2 Nov 2014 16:07:56 +0300 Subject: [PATCH] Proxy selected style lang to templates --- app/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/index.js b/app/index.js index edde6ea..94ba957 100644 --- a/app/index.js +++ b/app/index.js @@ -77,6 +77,7 @@ ReactWebpackGenerator.prototype.askForStylesLanguage = function () { ], default : 'css' }, function (props) { + this.env.options.stylesLanguage = props.stylesLanguage; this.config.set('styles-language', props.stylesLanguage); done(); }.bind(this)); @@ -93,6 +94,7 @@ ReactWebpackGenerator.prototype.createIndexHtml = function createIndexHtml() { ReactWebpackGenerator.prototype.packageFiles = function () { this.reactRouter = this.env.options.reactRouter; + this.stylesLanguage = this.env.options.stylesLanguage; this.template('../../templates/common/_package.json', 'package.json'); this.template('../../templates/common/_webpack.config.js', 'webpack.config.js'); this.template('../../templates/common/_webpack.dist.config.js', 'webpack.dist.config.js');