What I want to do is simple: I want to minify my code without uglifying it. I want to do this because am building a node module which I need to use in different environments.
My configuration is simple and standard. I just don't know how to minify without uglifying.
This is what I got:
Files: src - index.js - Dog.js dist - main.js webpack.config.js
module.exports = { target: 'node', mode: 'production', }; index.js
const Dog = require("./Dog"); module.exports = { Dog } Dog.js
class Dog{ //Typical Dog stuff } module.exports = Dog; According to the next link minifying does increases performance.