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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user