Closed Darmikon closed 7 years ago
Update:
{
test: /\.(js|jsx)$/,
include: paths.appSrc,
use: [
{
loader: require.resolve('babel-loader'),
options: {
cacheDirectory: true,
},
},
{
loader: 'webpack-conditional-loader'
}
]
}
As far as I see it works with such config
// #if process.env.NODE_ENV === 'development'
console.log('lorem');
console.log('ipsum');
// #endif
When NODE_ENV !=='development'
entire block has been commented
Hi there. Does it work with webpack 3. Or if no then are you planning updates?