Skip to content

Commit 83f0407

Browse files
committed
Added backup compat for 1.x (styles global folder)
1 parent eafafb5 commit 83f0407

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

conf/webpack/Base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ class WebpackBaseConfig {
147147
config: `${this.srcPathAbsolute}/config/${this.env}.js`,
148148
images: `${this.srcPathAbsolute}/images/`,
149149
sources: `${this.srcPathAbsolute}/sources/`,
150-
stores: `${this.srcPathAbsolute}/stores/`
150+
stores: `${this.srcPathAbsolute}/stores/`,
151+
styles: `${this.srcPathAbsolute}/styles/`
151152
},
152153
extensions: ['', '.js', '.jsx'],
153154
modules: [

src/components/App.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ const yeomanImage = require('../images/yeoman.png');
77
@cssmodules(styles)
88
class AppComponent extends React.Component {
99

10-
handleClick() {
11-
return true;
12-
}
13-
1410
render() {
1511
return (
1612
<div className="index" styleName="index" onClick={this.handleClick.bind(this)}>

src/styles/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# About this folder
2+
The styles folder is there for legacy reasons.
3+
In Version 1.x of react-webpack-template, it would hold all stylesheets for your given project, including styles via an alias in the webpack configuration.
4+
This was deprecated for 2.x.
5+
6+
If you do not plan to use global styles, you may savely remove this folder.

0 commit comments

Comments
 (0)