Coder Social home page Coder Social logo

vue-multiple-pages's People

Contributors

plortinus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-multiple-pages's Issues

修改显示的默认路径

感谢您的脚手架,有些疑问望解答。
image
1、如何修改显示的默认路径?
2、哪里能直接打开页面的配置吗?

Question concerning creation of new folder/pages

Hi ! First of all thanks for this awsome work !
I have a question concerning the creation of new pasges , i follow your pattern : folder + inside 3 different files all name app.(html/js/vue) but when i try to reach my new page that crash and it's impossible to reach the page ! So i just want to know if it's possible to create new pages and if we can what i'm doing wrong ?
Thanks !

Good Job

项目初始准备用vue在一个多页网站上应用试水,脚手架基本能满足我们的需求,必须给出大大的赞。
有问题在开发过程中请教吧。

hash缓存的问题,请教下老铁

如果再项目里面引入公共层的hash缓存以及如何配合DllReferencePlugin插件提高打包的速度,希望老铁有新的方案不,比如,我想第三方库我不想每次都打包,可以一次打包,重复引用,然后CommonsChunkPlugin抽出公共的,每次改变了,才会改变hash值,业务的打包则可以每次打包都改变,如果方面,能加下老铁的微信或者其他联系方式不,很希望能多多沟通下

babel recommends: use babel-preset-env instead of babel-preset-es2015

npm WARN deprecated [email protected]: We're super 😸 excited that you're trying to use ES2015 syntax, but instead of making more yearly presets 😭 , Babel now has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. preset-env without options will compile ES2015+ down to ES5 just like using all the presets together and thus is more future proof. It also allows you to target specific browsers so that Babel can do less work and you can ship native ES2015+ to user 😎 ! We are also in the process of releasing v7, so please give http://babeljs.io/blog/2017/09/12/planning-for-7.0 a read and help test it out in beta! Thanks so much for using Babel 🙏, please give us a follow on Twitter @babeljs for news on Babel, join slack.babeljs.io for discussion/development and help support the project at opencollective.com/babel

mint-ui里的css文件加载不了

import 'element-ui/lib/theme-default/index.css'
import 'mint-ui/lib/style.min.css'
同样的方法element能加载出样式,mint-ui无法加载

请教个问题

localhost:8080/user/ 这个域名 默认能不能指向某个区块
比如 localhost:8080/user/ 这区块 我想默认设置为首页,访问域名为localhost:8080,后面没有参数 user 参数

import的图在build的时候,并没有出现在dist目录

首先感谢作者出了这么一款好用的脚手架。

问题描述: 当我在使用import导入一张静态的图片,

import loginBg from 'assets/img/login-bg.png'

//然后在方法里将它设置为屏幕背景,body
setBg: () => {
      var bodyNode = document.getElementsByTagName('body')[0]

      bodyNode.style.background = 'url(' + loginBg + ') no-repeat'
      bodyNode.style.backgroundSize = 'cover'
    }

在dev下是完全可以显示正常的,
但是build以后,这张图的路径在与生成页面的同级目录下,并没有生成。
想请问一下为什么,以及有什么好的解决方案,谢谢

我用到了vue-i18n语言包

在vue文件可以正常调用显示,在html页面title加上去不能识别,要怎么解决呢

<title>{{$t('en.money')}}Purchase guru - purchase guru shopping and seller website</title>

export default失效

再app.vue里面用
export default {
component:{
modalDialog:modalDialog
}
}
注册组件不行,要重新Vue.component('modalDialog',modalDialog)才行

一已解决

请教一下作者, 我想在你这个基础上把对应模块的静态资源 img、css 全部打包到对应的�文件夹,我发布的时候就需要提取一个文件夹。

能否配置引入静态模板

比如每个页面 引入头header和footer 这部分是死的,不想用vue组件,直接写进html文件里面, webpack 可以配置
这样的引入 ,
@require('../lib/app/components/footer.html', { "name": "home" })
nj能够加入这种配置

打包后css文件里引用的图片路径不对

Sass文件里这样引用:例如:background: url('../../img/bg.png') no-repeat bottom center;
打包后的结果:background:url(assets/img/bg.f0d3576.png)
放到服务器上部署后,就变成了根目录+/assets/css/assets/img/bg.f0d3576.png,多了个/assets/css,所以背景图样式出不来了
这个问题是webpack哪个地方设置的不对吗?

CSS output issue

I created modal.vue components which looks like this:

<template>
...
</template>

<script>
...
</script>

<style lang="css">
.modal {...}
</style>

Works good, but when I run npm run build css doesn't have css code for modal. What's wrong?
Looks like it doesn't extract css from .vue files.

请教如何写一个类似Vue-cli的项目生成器

想请教作者如何结合vue-cli写一个项目生成器,或者类似express 的应用生成器express-generator -g,用户终端输入命令参数,即可生成对应的项目骨架,求设计思路或者项目案例,十分感谢!!

git显示每次打包hash值都变化,而公共文件没改过

每次修改提交都会重新生成hash值,不能有效利用缓存,改过的hash才变比较好吧

-
+

-<script type="text/javascript" src="/assets/js/vendors.js?cbd0e4a50b3e39ce4fd3"></script><script type="text/javascript" src="/assets/js/cart.js?cbd0e4a50b3e39ce4fd3"></script> +<script type="text/javascript" src="/assets/js/vendors.js?516a5d7b8fcf0b8548f3"></script><script type="text/javascript" src="/assets/js/cart.js?516a5d7b8fcf0b8548f3"></script>

一个组件的问题引发的相对路径问题

我写了应该侧边栏组件,里面的路径都是用相对路径,然后在各个页面调用,但是用相对路径就会出现链接不对的问题,请问你是如何写子组件里面的url路径呢
<ul> <li><a href="../index.html"><i class="home"></i>Homepage</a></li> <li><a href="./search.html"><i class="search"></i>Search</a></li> <li><a href="./category.html"><i class="categroy"></i>Category</a></li> <li><a href="javascript:void(0);"><i class="message"></i>Message<sup></sup></a> </li> <li><a href="./cart.html"><i class="cart"></i>Cart<sup></sup></a></li> <li><a href="./member.html"><i class="member"></i>My account</a></li> </ul>

无法使用vue-particles

我在SPA模版里能够使用vue-particles,但在这里,却是报错的。
default
这是还需要更改什么配置吗?

如何引入公共的样式或js?

如果在每个页面都引入一段相同的css 或js代码? 在每个页面 的app.js里面引入每次都要写一遍.
以及html里面如何引入静态文件? 目前html里面用link或者script标签方式引入都路径不对 ,vue-cli那样可以直接在index.html里面引入static目录下的文件.

Vue Devtools无法使用?

npm run dev 后Vue Devtools提示模式是生产模式,无法使用.这样不方便管理vuex,有没有解决的办法呢?

Is it possible to make this also server-side ?

Hi
First of all thanks for this awesome starter kit , really helped me <3
I was wondering is it possible to also render pages server side whenever javascript is not available !?

Thanks in advance

关于css压缩和js压缩

css
js

感谢您不断维护这个脚手架,使用中有些问题想向您请教:
npm run build之后编译出来的js和css文件都很大,但源文件也只有几百行的js,css就更少了,所以想问下您,是不是没有进行css和js的压缩,还是说有相关插件功能可能并没有被我启用?

1
这个首页几乎没有内容,但是加载的css和js就已经达到了5.4M。
想请教下您,该怎么样修改可以在npm run build的时候进行自动压缩(css和js)

Bug when run npm run dev

(function (exports, require, module, __filename, __dirname) { const { join, resolve } = require('path')
^

SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at requireConfig (/home/web/newProject/node_modules/webpack/bin/convert-argv.js:96:18)
at /home/web/newProject/node_modules/webpack/bin/convert-argv.js:109:17
at Array.forEach (native)

Can you help me solve this problem. Otherwise , I see this architecture is greate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.