A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
A full-featured Webpack setup with hot-reload, lint-on-save, unit testing & css extraction.
This template is Vue 2.0 compatible. For Vue 1.x use this command:
vue init webpack#1.0 my-project
This template was the main template for vue-cli verison 2.*.
Now that we have released a stable version of vue-cli 3, which incorporates all features that this template offers (and much more), we think that this template doesn't have any significant use for the future, so we won't put much resource in developing it further.
We will try and fix major issues should they arise, but not much more.
Feel free to fork this template if you want to keep it alive.
This is a project template for vue-cli. It is recommended to use npm 3+ for a more efficient dependency tree.
$ npm install -g vue-cli
$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run devThis will scaffold the project using the master branch. If you wish to use the latest version of the webpack template, do the following instead:
$ vue init webpack#develop my-project:warning: The develop branch is not considered stable and can contain bugs or not build at all, so use at your own risk.
The development server will run on port 8080 by default. If that port is already in use on your machine, the next free port will be used.
npm run dev: first-in-class development experience.
vue-loader for single file Vue components.npm run build: Production ready build.
index.html with proper URLs to these generated assets.npm run build --reportto build with bundle size analytics.npm run unit: Unit tests run in JSDOM with Jest, or in PhantomJS with Karma + Mocha + karma-webpack.
npm run e2e: End-to-end tests with Nightwatch.
You can fork this repo to create your own boilerplate, and use it with vue-cli:
vue init username/repo my-projectWhite blank screen using React Router
Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('.firebase-cloud-messaging-push-scope') with script ('firebase-messaging-sw.js'): A bad HTTP response code (404) was received when fetching the script. (messaging/failed-service-worker-registration) , normally run on the localhost but when I am uploading on filezilla then it show this error..
how to fix npm run build blank display with vue-cli 3.2.45
Vuetify : "Expected newline." loading vuetify sass files
> > I run this is the console of my navigator (Chrome), and no error message anymore :
Using VueJs in .Net MVC. everything compiles fine but i am getting an empty view
Proxy doesn't work
Webpack chunks not using correct publicPath
Linting external JavaScript files
set default assetsPublicPath to './' instead of '/'