The structure of my usuals Vue projects
Here is a more complete description.
- Babel
- VueJS
- Webpack
- ESLint
- config file injection
- very light custom logger
# Clone this repo
git clone https://github.com/psancho/vue-starter.git vue-starter
# change directory to your app
cd vue-starter
# install the dependencies with npm
npm i
# start the server
npm start
Go to http://localhost:8080 in your browser.
Note you can change the port (see devServe.port doc) in 3 ways:
-
in the
scripts
section of thepackage.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