Skip to content

Commit 1c9b106

Browse files
authored
Merge pull request #355 from BeAPI/feature/ari-dist
Move ARI conf
2 parents 2f085c7 + 630d577 commit 1c9b106

File tree

7 files changed

+10
-2
lines changed

7 files changed

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

config/image-sizes.js

Lines changed: 2 additions & 2 deletions
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 = {

config/loaders.js

Lines changed: 8 additions & 0 deletions
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)