generated from ecomplus/storefront-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
storefront.webpack.js
34 lines (32 loc) · 2.24 KB
/
storefront.webpack.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const path = require('path')
const dirSearchAlias = path.resolve(__dirname, 'template/js/lib/search-engine')
const pathDslAlias = path.resolve(dirSearchAlias, 'dsl')
module.exports = () => ({
resolve: {
alias: {
'./lib/dsl': pathDslAlias,
'./../lib/dsl': pathDslAlias,
'../lib/dsl': pathDslAlias,
'./methods/set-search-term': path.resolve(dirSearchAlias, 'set-search-term'),
'./base-config': path.resolve(__dirname, 'template/js/netlify-cms/base-config'),
'./js/ProductCard.js': path.resolve(__dirname, 'template/js/custom-js/ProductCard.js'),
'./js/DiscountApplier.js': path.resolve(__dirname, 'template/js/custom-js/DiscountApplier.js'),
'./js/ProductVariations.js': path.resolve(__dirname, 'template/js/custom-js/ProductVariations.js'),
'./js/ShippingCalculator.js': path.resolve(__dirname, 'template/js/custom-js/ShippingCalculator.js'),
'./html/ProductVariations.html': path.resolve(__dirname, 'template/js/custom-js/ProductVariations.html'),
'./html/SearchEngine.html': path.resolve(__dirname, 'template/js/custom-js/SearchEngine.html'),
'./js/SearchEngine.js': path.resolve(__dirname, 'template/js/custom-js/SearchEngine.js'),
'./js/APicture.js': path.resolve(__dirname, 'template/js/custom-js/APicture.js'),
'./html/ProductCard.html': path.resolve(__dirname, 'template/js/custom-js/ProductCard.html'),
'./html/ShippingCalculator.html': path.resolve(__dirname, 'template/js/custom-js/ShippingCalculator.html'),
'./html/ProductGallery.html': path.resolve(__dirname, 'template/js/custom-js/ProductGallery.html'),
'./js/ProductGallery.js': path.resolve(__dirname, 'template/js/custom-js/ProductGallery.js'),
'./js/TheProduct.js': path.resolve(__dirname, 'template/js/custom-js/TheProduct.js'),
'./html/TheProduct.html': path.resolve(__dirname, 'template/js/custom-js/TheProduct.html'),
'./js/APrices.js': path.resolve(__dirname, 'template/js/custom-js/APrices.js'),
'./html/APrices.html': path.resolve(__dirname, 'template/js/custom-js/APrices.html'),
'./js/BuyTogether.js': path.resolve(__dirname, 'template/js/custom-js/BuyTogether.js'),
'./html/BuyTogether.html': path.resolve(__dirname, 'template/js/custom-js/BuyTogether.html')
}
}
})