如何在终端使用VSCode, Sublime, Atom打开当前工程目录

使用VSCode, Sublime, Atom打开当前工程目录 使用 sudo vi ~/.zshrc打开zshell的配置文件 在文件里面加入下面三行 123alias atom='/Applications/Atom.app/Contents/MacOS/Atom'alias subl='/Applications/SublimeText.app/Contents/SharedSupport/bin/subl'alias vsco

Read More...

Webpack 配置

Webpack 配置

package.json

1
2
3
4
5
6
7
8
9
10
cnpm install css-loader style-loader sass-loader node-sass --save-dev
cnpm install postcss-loader
cnpm install autoprefixer-loader
cnpm install precss-loader
cnpm install babel-loader --save-dev
cnpm install babel-preset-es2015 babel-preset-react --save-dev
cnpm install react react-dom --save
cnpm install bootstrap@4.0.0-alpha.2 --save-dev
cnpm install url-loader --save-dev
cnpm install extract-text-webpack-plugin --save

Read More...