blob: 595f073fc33f2ab06690515d9e9a05e624368f56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
const { env, publicPath } = require('../configuration.js')
module.exports = {
test: /\.(jpg|jpeg|png|gif|svg|eot|ttf|woff|woff2)$/i,
use: [{
loader: 'file-loader',
options: {
publicPath,
name: env.NODE_ENV === 'production' ? '[name]-[hash].[ext]' : '[name].[ext]'
}
}]
}
|