Use the configuration file webpack.config.js package file

1. First, a first introduction path dependency, which is used to write path for

const path = require('path')

2. write a module file

= {module.exports
entry: './ public / The index.js', the inlet path of the file //
Output:'
}

entry is an entry file

 

 

Guess you like

Origin www.cnblogs.com/lanlanJser/p/11879259.html