Skip to content

blade254353074/product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#product

*admin的html文件路径:

/src/html/admin/index.html

html片段:

<body>
    <div id="app">
        <component is="{{currentView}}" v-ref="app"></component>
    </div>
    <script src="/assets/admin/js/app.min.js"></script>
</body>

*JS入口文件

/src/admin/js/app.js

Vue是添加过vue-resource组件的

*一层组件在/src/admin/js/component.js

*vue组件位置为:

/src/admin/js/components/*.vue

/src/admin/js/components/public/*.vue

#开始 npm install gulp gulp-sass gulp-tmod gulp-minify-html gulp-minify-css gulp-autoprefixer gulp-jshint gulp-uglify gulp-imagemin imagemin-pngquant gulp-rename gulp-clean gulp-rev gulp-concat gulp-cache gulp-notify gulp-util gulp-plumber url gulp-browserify browser-sync proxy-middleware vueify yargs gulp-if node-sass postcss autoprefixer-core --save-dev

gulp watch

然后就可以了