How can I avoid creating *.pug.transpiled files automatically?
Closed this issue · 2 comments
edu791 commented
I don't want the files *.pug.transpiled
to be created automatically. How can I disable it?
bluewings commented
@eduardrock
From version 1.0.35, You can disable the creation of * .pug.transpiled.jsx
files by adding the transfiledFile
option.
// webpack.config.js
{
test: /\.pug$/,
include: paths.appSrc,
use: [
require.resolve('babel-loader'),
{
loader: require.resolve('pug-as-jsx-loader'),
options: {
transpiledFile: false,
},
},
],
},
edu791 commented
@bluewings, but my webpack.config.js file is like this:
{
test: /\.(pug|js|jsx)$/,
loaders: ['babel-loader?presets[]=es2015&presets[]=react', 'pug-as-jsx-loader'],
},
In which part do I have to put that code?