Skip to content

Commit

Permalink
Update: add css-style loader, stylesheet import
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisandy committed Feb 13, 2017
1 parent 5e0f0ac commit 9612dcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Usage from './components/Usage'
import Install from './components/Install'
import Examples from './components/Examples'
import Footer from './components/Footer'
import 'react-rangeslider/lib/index.css'
import './app.less'

function App () {
Expand Down
9 changes: 7 additions & 2 deletions docs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ var config = {
},

resolve: {
extensions: ['', '.js', '.less'],
extensions: ['', '.js', '.css', '.less'],
alias: {
'react-rangeslider$': path.join(__dirname, '..', 'src')
'react-rangeslider': path.join(__dirname, '..')
}
},

Expand All @@ -32,6 +32,11 @@ var config = {
exclude: /node_modules/,
loader: 'babel'
},
{
test: /\.css$/,
exclude: /node_modules/,
loader: 'style!css'
},
{
test: /\.txt$/,
exclude: /node_modules/,
Expand Down

0 comments on commit 9612dcc

Please sign in to comment.