@epublishing/grunt-epublishing 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/webpack.config.js +12 -3
- package/package.json +1 -1
package/lib/webpack.config.js
CHANGED
|
@@ -86,6 +86,17 @@ function createWebpackConfig(config, options = {}) {
|
|
|
86
86
|
// Build module paths for resolve.modules
|
|
87
87
|
const modulePaths = buildModulePaths(paths);
|
|
88
88
|
|
|
89
|
+
// Aliases for jade hierarchy (jade-child in jadechild gem, jade-engine in jade gem)
|
|
90
|
+
const resolveAlias = {
|
|
91
|
+
lodash: lodashDir,
|
|
92
|
+
};
|
|
93
|
+
if (paths.jadechild) {
|
|
94
|
+
resolveAlias['jade-child'] = path.join(paths.jadechild, paths.js_src || 'app/js', 'jade-child.js');
|
|
95
|
+
}
|
|
96
|
+
if (paths.jade) {
|
|
97
|
+
resolveAlias['jade-engine'] = path.join(paths.jade, paths.js_src || 'app/js', 'jade-engine.js');
|
|
98
|
+
}
|
|
99
|
+
|
|
89
100
|
// Build plugins array
|
|
90
101
|
const plugins = [
|
|
91
102
|
// Environment variables
|
|
@@ -243,9 +254,7 @@ function createWebpackConfig(config, options = {}) {
|
|
|
243
254
|
resolve: {
|
|
244
255
|
modules: modulePaths,
|
|
245
256
|
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.hbs'],
|
|
246
|
-
alias:
|
|
247
|
-
lodash: lodashDir,
|
|
248
|
-
},
|
|
257
|
+
alias: resolveAlias,
|
|
249
258
|
},
|
|
250
259
|
|
|
251
260
|
resolveLoader: {
|
package/package.json
CHANGED