Skip to content

Commit

Permalink
feat(webpack): Add more extensions to url and file loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Oct 1, 2016
1 parent b33422f commit dac24c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/webpack/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ function loaders(flags, params) {
test: /\.json$/,
loader: require.resolve('json-loader')
}, {
test: /\.(mp4|webm)$/,
test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)$/,
loader: require.resolve('url-loader'),
query: { limit: 1000 }
}, {
test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)$/,
test: /\.(jpg|jpeg|png|gif|eot|svg|ttf|woff|woff2)$/,
loader: require.resolve('file-loader'),
query: isProd && {
name: '[name].[hash:8].[ext]'
Expand Down
4 changes: 2 additions & 2 deletions src/lib/webpack/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ export function loaders(flags:CLIFlags, params:AikParams) : Loader[] {
loader: require.resolve('json-loader')
},
{
test: /\.(mp4|webm)$/,
test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)$/,
loader: require.resolve('url-loader'),
query: { limit: 1000 }
},
{
test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)$/,
test: /\.(jpg|jpeg|png|gif|eot|svg|ttf|woff|woff2)$/,
loader: require.resolve('file-loader'),
query: isProd && {
name: '[name].[hash:8].[ext]'
Expand Down

0 comments on commit dac24c1

Please sign in to comment.