0fa642aacf
* Add file-loader to webpack config * Fix lint problems
19 lines
347 B
JavaScript
19 lines
347 B
JavaScript
module.exports = {
|
|
webpack: config => {
|
|
config.module.rules.push({
|
|
test: /\.(txt|jpg|png|svg)$/,
|
|
use: [
|
|
{
|
|
loader: 'file-loader',
|
|
options: {
|
|
context: '',
|
|
emitFile: true,
|
|
name: '[path][name].[hash].[ext]'
|
|
}
|
|
}
|
|
]
|
|
})
|
|
|
|
return config
|
|
}
|
|
}
|