Skip to content

Commit

Permalink
refactor(build-config): do not emit files during server build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd authored and dmbch committed Feb 19, 2018
1 parent 9700438 commit d8b1ff3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/build-config/sections/module-rules/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ exports.default = {
name: path.join(hopsConfig.assetPath, '[name]-[hash:16].[ext]'),
},
};

exports.node = {
exclude: /\.(?:m?jsx?|html|json)$/,
loader: require.resolve('file-loader'),
options: {
name: path.join(hopsConfig.assetPath, '[name]-[hash:16].[ext]'),
emitFile: false,
},
};

0 comments on commit d8b1ff3

Please sign in to comment.