The structure of my usuals Vue projects
Here is a more complete description.
- Babel
- VueJS
- Webpack
- ESLint
- config file injection
- very light custom logger
npm i
npm start
Go to http://localhost:8080 in your browser.
Note you can change the port (see [devServe.port](https://webpack.js.org/configuration/dev-server/#devserverport) doc) in 3 ways:
* in the `scripts` section of the `package.json`
```json
"start": "cross-env NODE_ENV=development webpack-dev-server --hot --port 9000"
-
in
webpack.config.js
module.exports = { //... devServer: { port: 9000 } };
-
directly in the CLI:
npm start --port=9000
Just launch the following:
npm run build
By default, it uses the config/production.js
file.
To use an alternate configuration, launch the following:
npm run build myServerConfig
see comments in src/interfaces/consoleLogger.js