Skip to content

Commit 1679870

Browse files
committed
multi-lang dirs, fixes
1 parent dd2eced commit 1679870

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ gulp.task("nodemon", lazyRequireTask('./tasks/nodemon', {
2626
nodeArgs: process.env.NODE_DEBUG ? ['--debug'] : [],
2727
script: "./bin/server.js",
2828
//ignoreRoot: ['.git', 'node_modules'].concat(glob.sync('{handlers,modules}/**/client')), // ignore handlers' client code
29-
ignore: ['**/client/'], // ignore handlers' client code
29+
ignore: ['**/client/', 'public'], // ignore handlers' client code
3030
watch: ["modules"]
3131
}));
3232

modules/config/webpack.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,19 @@ module.exports = function () {
242242
fs: 'empty'
243243
},
244244

245+
performance: {
246+
maxEntrypointSize: 350000,
247+
maxAssetSize: 350000, // warning if asset is bigger than 300k
248+
assetFilter(assetFilename) { // only check js/css
249+
// ignore assets copied by CopyWebpackPlugin
250+
if (assetFilename.startsWith('..')) { // they look like ../courses/achievements/course-complete.svg
251+
// built assets do not have ..
252+
return false;
253+
}
254+
return assetFilename.endsWith('.js') || assetFilename.endsWith('.css');
255+
}
256+
},
257+
245258
plugins: [
246259
new webpack.DefinePlugin({
247260
LANG: JSON.stringify(config.lang),

templates/layouts/main.pug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ block main
88
+b("ol").breadcrumbs
99
include ../blocks/breadcrumbs
1010

11+
block over-title
12+
1113
if title
1214
- var parts = title.split('\n');
1315
h1.main__header-title

0 commit comments

Comments
 (0)