mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-12 12:21:11 +08:00
Proxy selected style lang to templates
This commit is contained in:
@@ -77,6 +77,7 @@ ReactWebpackGenerator.prototype.askForStylesLanguage = function () {
|
|||||||
],
|
],
|
||||||
default : 'css'
|
default : 'css'
|
||||||
}, function (props) {
|
}, function (props) {
|
||||||
|
this.env.options.stylesLanguage = props.stylesLanguage;
|
||||||
this.config.set('styles-language', props.stylesLanguage);
|
this.config.set('styles-language', props.stylesLanguage);
|
||||||
done();
|
done();
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
@@ -93,6 +94,7 @@ ReactWebpackGenerator.prototype.createIndexHtml = function createIndexHtml() {
|
|||||||
|
|
||||||
ReactWebpackGenerator.prototype.packageFiles = function () {
|
ReactWebpackGenerator.prototype.packageFiles = function () {
|
||||||
this.reactRouter = this.env.options.reactRouter;
|
this.reactRouter = this.env.options.reactRouter;
|
||||||
|
this.stylesLanguage = this.env.options.stylesLanguage;
|
||||||
this.template('../../templates/common/_package.json', 'package.json');
|
this.template('../../templates/common/_package.json', 'package.json');
|
||||||
this.template('../../templates/common/_webpack.config.js', 'webpack.config.js');
|
this.template('../../templates/common/_webpack.config.js', 'webpack.config.js');
|
||||||
this.template('../../templates/common/_webpack.dist.config.js', 'webpack.dist.config.js');
|
this.template('../../templates/common/_webpack.dist.config.js', 'webpack.dist.config.js');
|
||||||
|
|||||||
Reference in New Issue
Block a user