docs: demo for using LiquidJS with webpack

This commit is contained in:
Harttle
2022-10-22 00:39:18 +08:00
committed by Harttle
parent 32f613fb43
commit 33c7c8f301
10 changed files with 90 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
const path = require('path');
const { ContextReplacementPlugin } = require('webpack')
module.exports = {
entry: './src/index.js',
mode: 'development',
target: 'node',
plugins: [
new ContextReplacementPlugin(/liquidjs/)
],
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
},
};