webpack.config.js
module: {
rules: [
{
test: /\.pug$|\.jade$/,
use: ['babel-loader', 'pug-react-loader'],
},
...
],
},
module: {
rules: [
{
test: /\.pug$|\.jade$/,
use: ['babel-loader', 'pug-react-loader'],
},
...
],
},
npm i pug-react-loader
2
1.0.10
MIT
66.9 kB
11