2 Star 1 Fork 0

灰太狼啊 / myClass

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

#vue+ webpack 实践

实例 :http://1.hjhvue1.applinzi.com/#!/

#处理 jquery,和插件的引用 的

resolve: {
    // require时省略的扩展名,如:require('module') 不需要module.js
    extensions: ['', '.js', '.vue'],
    // 别名,可以直接使用别名来代表设定的路径以及其他
    alias: {
        components: path.join(__dirname, './src/components'),
        jquery:path.join(__dirname,  './src/lib/js/jquery.js')
    }
},
externals: {
    $: "jquery",
    jQuery: "jquery",
    "window.jQuery": "jquery"
},
 plugins: [
    new webpack.ProvidePlugin({
        $: 'jquery',
        jQuery: "jquery",
        "window.jQuery": "jquery"
    }),
]

运行项目

#myClass

#1st step

npm install

#2nd step

npm run init

#3rd step npm run dev

#4th step

open url on pc bower: localhost:8081

空文件

简介

webpack -vue -vue-router组件化工程 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/adfasdfasdfas/myClass.git
git@gitee.com:adfasdfasdfas/myClass.git
adfasdfasdfas
myClass
myClass
master

搜索帮助