Skip to content

Commit

Permalink
Update webpack config to add more audio related static assests. (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda authored Oct 4, 2016
1 parent 19e4db0 commit 19c2b49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Empty file modified dist/server/build.js
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions dist/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ module.exports = function (storybookBaseConfig) {
include: _utils.includePaths,
loader: require.resolve('json-loader')
}, {
test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)(\?.*)?$/,
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
include: _utils.includePaths,
loader: require.resolve('file-loader'),
query: {
name: 'static/media/[name].[hash:8].[ext]'
}
}, {
test: /\.(mp4|webm)(\?.*)?$/,
test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/,
include: _utils.includePaths,
loader: require.resolve('url-loader'),
query: {
Expand Down
4 changes: 2 additions & 2 deletions src/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ module.exports = (storybookBaseConfig) => {
loader: require.resolve('json-loader'),
},
{
test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)(\?.*)?$/,
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
include: includePaths,
loader: require.resolve('file-loader'),
query: {
name: 'static/media/[name].[hash:8].[ext]',
},
},
{
test: /\.(mp4|webm)(\?.*)?$/,
test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/,
include: includePaths,
loader: require.resolve('url-loader'),
query: {
Expand Down

0 comments on commit 19c2b49

Please sign in to comment.