Skip to content

Commit d9a0d4d

Browse files
committed
Icon set and loader
1 parent beed139 commit d9a0d4d

12 files changed

+65
-1
lines changed

generateConfig.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ module.exports = (options = {}) => {
4343
query: {
4444
cacheDirectory: true
4545
}
46+
}, {
47+
test: /\.svg$/,
48+
loader: 'babel!react-svg'
4649
}, {
4750
test: /\.css$/,
4851
include: srcPath,
4952
loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=1&localIdentName=[hash:base64:5]&hashPrefix=react-html5video&-autoprefixer!postcss')
5053
}, {
51-
test: /\.(eot|ttf|woff|woff2|svg)(\?.*)?$/,
54+
test: /\.(eot|ttf|woff|woff2)(\?.*)?$/,
5255
loader: 'url'
5356
}]
5457
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"react-addons-test-utils": "^15.4.0",
8787
"react-dom": "^15.4.0",
8888
"react-hot-loader": "^3.0.0-beta.6",
89+
"react-svg-loader": "^1.1.1",
8990
"recompose": "^0.20.2",
9091
"style-loader": "^0.13.1",
9192
"url-loader": "^0.5.7",
Lines changed: 6 additions & 0 deletions
Loading

src/DefaultPlayer/Icon/fullscreen.svg

Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading

src/DefaultPlayer/Icon/pause.svg

Lines changed: 6 additions & 0 deletions
Loading

src/DefaultPlayer/Icon/play_arrow.svg

Lines changed: 6 additions & 0 deletions
Loading

src/DefaultPlayer/Icon/report.svg

Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)