Compare commits
2 Commits
783c0b3aae
...
2191616124
Author | SHA1 | Date |
---|---|---|
|
2191616124 | |
|
28d9eb00d9 |
|
@ -108,16 +108,16 @@ module.exports = function(eleventyConfig) {
|
|||
let output = await require('esbuild').build({
|
||||
target: 'es2022',
|
||||
entryPoints: [inputPath],
|
||||
minify: true,
|
||||
bundle: true,
|
||||
write: false,
|
||||
});
|
||||
|
||||
return async () => {
|
||||
console.log('processing js');
|
||||
console.log(output.outputFiles[0].text);
|
||||
return output.outputFiles[0].text;
|
||||
}
|
||||
},
|
||||
compileOptions: {
|
||||
permalink: (contents, inputPath) => (data) => data.page.filePathStem + '.js',
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -32,6 +32,6 @@
|
|||
{% render 'footer.html', lang: lang %}
|
||||
</div>
|
||||
|
||||
<script src='/index.js' type='module'></script>
|
||||
<script src='/js/index.js' type='text/javascript'></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue