Skip to content

Commit

Permalink
cleanup loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
ericalli committed Jun 15, 2019
1 parent 6d781da commit 25647fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/webpack.loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const html = {
use: [
{
loader: 'html-loader',
options: {
interpolate: true,
},
},
],
};
Expand Down Expand Up @@ -116,6 +119,7 @@ const imageLoader = {

const images = {
test: /\.(gif|png|jpe?g|svg)$/i,
exclude: /fonts/,
use: [
'file-loader?name=images/[name].[hash].[ext]',
config.env === 'production' ? imageLoader : null,
Expand All @@ -137,7 +141,7 @@ const fonts = {
],
};

// Video
// Video loaders
const videos = {
test: /\.(mp4|webm)$/,
use: [
Expand All @@ -159,4 +163,5 @@ module.exports = [
less,
images,
fonts,
videos,
];

0 comments on commit 25647fb

Please sign in to comment.