vue run
1.0.0
Il s'agit d'un outil qui prend en charge les bibliothèques de composants
VueetElementpour s'exécuter en ligne.
Vous pouvez utiliser cet outil pour exécuter quelques petites démos sans configurer d'environnement. Collez simplement le code et il peut être exécuté. Prend en charge la commutation entre la version Vue et la version Element.
Aperçu du projet
yarn install
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
location ~ ^/vue/ {
proxy_pass https://cdn.bootcss.com;
}
location ~ ^/element-ui/ {
proxy_pass https://cdn.bootcss.com;
}
}
yarn run serve
yarn run build
docker build -t vue-run .
docker run -i -t -p 5000:80 vue-run Vous pouvez y accéder en visitant http://localhost:5000