Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2018/01/12 花生笔记 #1

Open
kylin-z opened this issue Jan 12, 2018 · 3 comments
Open

2018/01/12 花生笔记 #1

kylin-z opened this issue Jan 12, 2018 · 3 comments
Labels

Comments

@kylin-z
Copy link

kylin-z commented Jan 12, 2018

笔记内容

@kylin-z kylin-z changed the title 标题 2018/01/12 这是笔记标题 Jan 12, 2018
@kylin-z kylin-z added the 花生 label Jan 12, 2018
@kylin-z kylin-z changed the title 2018/01/12 这是笔记标题 2018/01/12 花生笔记 Jan 15, 2018
@kylin-z
Copy link
Author

kylin-z commented Jan 15, 2018

关于打包问题[代花生发]

index.js 下 build 的 assetsPublicPath: './',

原来设置成 ‘/’ 目的是为了 在服务器上使用 服务器地址 +/xx/index.html 但在本地打开 就成了 file://+/xx/index.html

Emmmm 但是这个不是重点 这个页面可以手动打开 但是 配置的 js css 都用的绝对路径 引用根本找不到 这个时候 用 ‘./’ 相对路径 就可以找到 js css 等资源

@kylin-z
Copy link
Author

kylin-z commented Jan 15, 2018

关于大图片的引入[代花生发]

暂时留着 后期解决

@kevinlorry
Copy link

kevinlorry commented Jan 15, 2018

vue项目引入scss 教程

构建好vue项目之后 添加 node-sass 和 sass-loader
项目根目录下执行

npm install --save-dev sass-loader
npm install --save-dev node-sass

然后项目文件中 hello.vue 的style中加入 lang="sass”

<!--引入sass-->
<style lang="sass”></style>
<!--引入scss-->
<style lang="scss”></style>

其他不需要配置 脚手架已经预先配置好 sass 编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants