Skip to content

Commit

Permalink
Fix url loader doc[ci skip] (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravtiwari authored Jan 14, 2018
1 parent 6695445 commit e5a3cd2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,13 @@ environment.loaders.insert('svg', {
```js
// config/webpack/loaders/url.js

const { assetHost } = require('@rails/webpacker')

module.exports = {
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
use: [{
loader: 'url-loader',
options: {
limit: 10000,
name: '[name]-[hash].[ext]',
publicPath: assetHost.publicPathWithHost
name: '[name]-[hash].[ext]'
}
}]
}
Expand Down

1 comment on commit e5a3cd2

@Ployee15
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jj jinchai have to contact you now please let's him '

Please sign in to comment.