- 博客(6)
- 收藏
- 关注
原创 linux基本操作
cd 可以退到根目录cd ..退到上一级目录pwd 查看当前目录df -lh 查看文件系统 容量ls 查看文件列表mkdir 创建文件git clone git@ip地址:/home/git/luojie.gitcat 查看文件内容vim 文件名 编译文件 i 进入写入 esc退出写入 :q 直接退出,不保存修改 :wq写入保
2017-09-22 11:00:35 146
原创 git 常用命令
1.创建代码仓库生成秘钥git config --global user.name roshinegit config --global user.email [email protected] -t rsa -C "[email protected]"进入C盘\用户\用户名\.ssh文件 找 id_rsa.pub 是否存在将新生成的ke
2017-09-22 10:42:05 171
原创 webpack如何正确分离css
webpack2的写法需要用到的插件const ExtractTextPlugin = require('extract-text-webpack-plugin');{test:/\.css$/,exclude:node_modules,use:ExtractTextPlugin.extract({fallback:"style-loader",use:["css-
2017-06-09 10:31:38 4151 1
原创 seajs如何正确加载jquery
jquery 默认支持模块化amd ,但是不支持cmd,所以想要seajs加载jquery,需要修改一段代码把 if (typeof define === "function" && (define.amd)) { define( "jquery", [], function() { return jQuery; }); }改成
2017-06-09 10:27:18 1304
原创 webpack 图片的处理
webpack 图片的处理利用url-loader处理图片,当图片小于12k时,转换为压缩base64编码的图片,大于12k输出到目录下,默认为path下的images下,可自己设置路径{ test:/\.(jpg|png)$/, use:'url-loader?limit=12000&name=../images/[name].[ext]'}注:publicPath一般最好不
2017-04-17 12:07:29 1683
原创 webpack - autoprefixer的处理
webpack - autoprefixer的处理webpack.config.jsmodule:{ rules:[ { test:/\.css$/, exclude:node_modules, use:["style-loader","css-loader","postcss-loader","px2r
2017-04-17 12:06:23 6585
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人