Merge pull request #136 from influxdata/feature/static-assets

Allow import of static png and jpg in scss
pull/10616/head
Andrew Watkins 2016-09-27 16:15:07 -07:00 committed by GitHub
commit 8210a56ad0
4 changed files with 7 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -99,6 +99,7 @@
"react-sparklines": "^1.4.2",
"redux": "^3.3.1",
"redux-thunk": "^1.0.3",
"resolve-url-loader": "^1.6.0",
"updeep": "^0.13.0"
}
}

View File

@ -130,7 +130,7 @@ $dygraphs-legend-offset: 32px;
&__spinner {
width: 121px;
height: 121px;
background-image: url(/assets/images/laser-spinner.png);
background-image: url(assets/images/laser-spinner.png);
background-size: 100% 100%;
background-position: center center;
background-repeat: no-repeat;
@ -139,7 +139,7 @@ $dygraphs-legend-offset: 32px;
&__spinner--small {
width: 38px;
height: 38px;
background-image: url(/assets/images/laser-spinner.png);
background-image: url(assets/images/laser-spinner.png);
background-size: 100% 100%;
background-position: center center;
background-repeat: no-repeat;
@ -263,4 +263,4 @@ $dygraphs-legend-offset: 32px;
font-weight: 600;
}
}
}
}

View File

@ -36,16 +36,15 @@ module.exports = {
},
{
test: /\.scss$/,
//loader: 'style!css!sass',
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader'),
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader!resolve-url!sass?sourceMap'),
},
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!postcss-loader'),
},
{
test : /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
loader : 'file-loader',
test : /\.(png|jpg|ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
loader : 'file',
},
{
test: /\.js$/,