Skip to content

Commit f03b7fa

Browse files
author
Ives van Hoorne
committed
Add pug support to vanilla
1 parent 64e7922 commit f03b7fa

File tree

2 files changed

+7
-1
lines changed
  • packages
    • app/src/sandbox/eval/presets/parcel
    • homepage/src/screens/home/Frameworks

2 files changed

+7
-1
lines changed

packages/app/src/sandbox/eval/presets/parcel/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import vueSelector from '../../transpilers/vue/selector';
1313
import vueStyleLoader from '../../transpilers/vue/style-loader';
1414
import cssLoader from '../../transpilers/vue/css-loader';
1515
import htmlTranspiler from './transpilers/html-transpiler';
16+
import pugTranspiler from '../../transpilers/pug';
1617

1718
import Preset from '../';
1819

@@ -46,6 +47,11 @@ export default function initialize() {
4647
{ transpiler: tsTranspiler },
4748
]);
4849

50+
parcelPreset.registerTranspiler(module => /\.pug$/.test(module.path), [
51+
{ transpiler: pugTranspiler },
52+
{ transpiler: htmlTranspiler },
53+
]);
54+
4955
parcelPreset.registerTranspiler(module => /\.html$/.test(module.path), [
5056
{ transpiler: htmlTranspiler },
5157
]);

packages/homepage/src/screens/home/Frameworks/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const TEMPLATE_SUPPORT = {
252252
description: 'Used for Angular projects, based on: ',
253253
},
254254
parcel: {
255-
loaders: [js, ts, html, scss, sass, less, cssGlobal, stylus, image],
255+
loaders: [js, ts, html, pug, scss, sass, less, cssGlobal, stylus, image],
256256
css: ['Global', 'Modules'],
257257
description: 'Used for any kind of project, based on: ',
258258
},

0 commit comments

Comments
 (0)