jpcn-coder
11/17/2018 - 1:55 PM

webpack

executar o webpack

só rodar pra criar o bundle.js

./node_modules/.bin/webpack


precisa estar no webpack.config.js

const webpack = require('webpack')

module.exports = {
    entry : './ex/index.js',
    output:{
        path: __dirname + '/public',
        filename : './bundle.js'
    },   
        devServer : {
            port:8080,
            contentBase : './public'
                
        }   
}