1
0
mirror of https://github.com/mgerb/react-starter synced 2026-03-05 06:15:24 +00:00

refactoring - added font awesome

This commit is contained in:
2017-02-13 21:17:10 +00:00
committed by Mitchell Gerber
parent 5f14578f86
commit ca7abf1def
21 changed files with 5141 additions and 53 deletions

View File

@@ -11,7 +11,7 @@ module.exports = {
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
filename: '[name].[hash].js'
},
module: {
rules: [{
@@ -29,6 +29,21 @@ module.exports = {
fallbackLoader: 'style-loader',
loader: 'css-loader'
})
}, {
test: /\.svg$/,
loader: 'url-loader?limit=65000&mimetype=image/svg+xml&name=static/[name].[hash].[ext]'
}, {
test: /\.woff$/,
loader: 'url-loader?limit=65000&mimetype=application/font-woff&name=static/[name].[hash].[ext]'
}, {
test: /\.woff2$/,
loader: 'url-loader?limit=65000&mimetype=application/font-woff2&name=static/[name].[hash].[ext]'
}, {
test: /\.[ot]tf$/,
loader: 'url-loader?limit=65000&mimetype=application/octet-stream&name=static/[name].[hash].[ext]'
}, {
test: /\.eot$/,
loader: 'url-loader?limit=65000&mimetype=application/vnd.ms-fontobject&name=static/[name].[hash].[ext]'
}]
},
plugins: [