Allow import of static png and jpg in scss

pull/136/head
Andrew Watkins 2016-09-27 11:07:17 -07:00
parent 7683d01c4c
commit b371e6ea91
5 changed files with 8 additions and 8 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

@ -18,4 +18,4 @@
// components. There's likely a better fix, but this does for now.
@import '../_OverviewPage';
@import '../chronograf/main';
@import '../_SideNav';
@import '../_SideNav';

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$/,