如何使用 gulp 将 Web 模板导入到 vue 应用程序中
我是 VueJS 的新手。我有一个全新的项目,我想通过 gulp/webpack 将一些全局 SCSS 和 javascript 摄取到项目中,因此它将被正确设置以开始构建内容。当我弄清楚这一点时。
我有一个具有标准文件夹的新项目:
.
./dist
./dist/css
./dist/js
./node_modules
./public
./.git
./src
./src/components
./src/assets
现在它显示新项目附带的默认 Vue 组件。
我有一个新的模板产品,有两个安装选项。 模板解决方案的文件结构是:
template/
├── dist/ // generated html / css / js files
├── gulpfile.js // gulp settings
├── package.json // npm package installed
└── src/
├── html/ // html source files
├── img/ // image source files
├── js/ // javascript source files
└── scss/ // studio scss files
第一个是全局连接器:
<!-- Core CSS -->
<link href="assets/css/vendor.min.css" rel="stylesheet" />
<link href="assets/css/app.min.css" rel="stylesheet" />
<!-- Core JS -->
<script src="assets/js/vendor.min.js"></script>
<script src="assets/js/app.min.js"></script>
现在我可以将其放入主 index.html 中,但模板的指南指出:
cd /your-path-url/template_html/
npm install
gulp
// generate plugins command
gulp plugins
项目的位置是:~/Projects/ web1/
模板的位置是:~/templates/HUD/
我如何告诉其中一个存在另一个,并将HUD模板摄取到web1项目中,以便我可以使用涉及的SCSS和JS ?
谢谢!
I am brand new to VueJS. I have a brand new project that I want to ingest some global SCSS and javascript into the project through gulp/webpack, so it'll be properly set to start building stuff. As I figure this out.
I have a new project that has the standard folders:
.
./dist
./dist/css
./dist/js
./node_modules
./public
./.git
./src
./src/components
./src/assets
Right now it displays the default Vue components that come along with a new project.
I have a new template product that has two options to install them.
The File structure for the template solution is:
template/
├── dist/ // generated html / css / js files
├── gulpfile.js // gulp settings
├── package.json // npm package installed
└── src/
├── html/ // html source files
├── img/ // image source files
├── js/ // javascript source files
└── scss/ // studio scss files
First one is the global connectors:
<!-- Core CSS -->
<link href="assets/css/vendor.min.css" rel="stylesheet" />
<link href="assets/css/app.min.css" rel="stylesheet" />
<!-- Core JS -->
<script src="assets/js/vendor.min.js"></script>
<script src="assets/js/app.min.js"></script>
now I can put that into the main index.html, but the guidance on the template states:
cd /your-path-url/template_html/
npm install
gulp
// generate plugins command
gulp plugins
The location of the project is: ~/Projects/web1/
The location of the template is: ~/templates/HUD/
How do I tell one that the other is there, and ingest the HUD template into the web1 project, so I can use the SCSS and JS Involved?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论