Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
react-spd
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 49f2f9f8
authored
May 19, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
css module
1 parent
5ce9631d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
client/components/App.jsx
client/main.scss
webpack.config.js
client/components/App.jsx
View file @
49f2f9f
import
React
from
'react'
;
import
'../main.scss'
;
import
styles
from
'../main.scss'
;
export
default
class
App
extends
React
.
Component
{
render
()
{
return
(
<
div
className=
'text-center'
>
<
div
className=
{
styles
.
textcenter
}
>
<
h1
>
Hello World
</
h1
>
</
div
>);
}
...
...
client/main.scss
View file @
49f2f9f
.text
-
center
{
.textcenter
{
text-align
:
center
;
h1
{
padding
:
20px
;
...
...
webpack.config.js
View file @
49f2f9f
...
...
@@ -12,7 +12,11 @@ const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
const
extractSass
=
ExtractTextPlugin
.
extract
({
use
:
[{
loader
:
"css-loader"
loader
:
"css-loader"
,
query
:
{
modules
:
true
,
localIdentName
:
'[name]__[local]___[hash:base64:5]'
}
},
{
loader
:
"sass-loader"
}],
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment