Skip to content

Commit 630d577

Browse files
committed
ARI - move default images to dist folder
1 parent 2f085c7 commit 630d577

File tree

7 files changed

+10
-2
lines changed

7 files changed

+10
-2
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: config/image-sizes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const sharp = require('sharp')
44
const Json2csvParser = require('json2csv').Parser
55
const fields = ['location', 'sizes.width', 'sizes.height', 'sizes.retina', 'sizes.ratio']
66
const dir = {
7-
conf: './src/conf-img/',
8-
tpl: './src/conf-img/tpl/',
7+
conf: './assets/conf-img/',
8+
tpl: './assets/conf-img/tpl/',
99
defaultImages: './src/img/default/',
1010
}
1111
const path = {

Diff for: config/loaders.js

+8
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ module.exports = {
1515
test: /\.(woff|woff2)$/,
1616
type: 'asset/resource',
1717
include: srcPath + '/fonts',
18+
generator: {
19+
filename: 'fonts/[name][ext][query]',
20+
},
1821
},
1922
/* ImagesLoader */ {
2023
test: /\.(png|jpe?g|gif|svg)$/,
2124
type: 'asset/resource',
2225
exclude: /icons/,
2326
include: srcPath + '/img',
27+
generator: {
28+
filename: 'images/[name][ext][query]',
29+
},
2430
},
2531
/* JSLoader */ {
2632
test: /\.js$/i,
@@ -42,6 +48,8 @@ module.exports = {
4248
{
4349
loader: 'css-loader',
4450
options: {
51+
url: true,
52+
esModule: false,
4553
importLoaders: 1,
4654
},
4755
},

0 commit comments

Comments
 (0)