Add compatibility to install on windows
This commit is contained in:
parent
978ec84906
commit
f8504a5ec0
2 changed files with 10 additions and 1 deletions
|
@ -22,6 +22,7 @@ Thanks for using! :smile:
|
|||
- [Installation](#installation)
|
||||
- [Getting started (Native install)](#getting-started-native-install)
|
||||
- [Prerequisite](#prerequisite)
|
||||
- [Windows](#windows)
|
||||
- [Instructions](#instructions)
|
||||
- [Heroku Deployment](#heroku-deployment)
|
||||
- [HackMD by docker container](#hackmd-by-docker-container)
|
||||
|
@ -58,6 +59,14 @@ Thanks for using! :smile:
|
|||
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
|
||||
- npm (and its dependencies, especially [uWebSockets](https://github.com/uWebSockets/uWebSockets#nodejs-developers), [node-gyp](https://github.com/nodejs/node-gyp#installation))
|
||||
|
||||
### Windows
|
||||
|
||||
You need to setup bash for npm first before the Instructions below.
|
||||
1. Install [git-for-windows](https://git-for-windows.github.io/) to get BASH emulation(bash.exe) for Windows
|
||||
2. Update npm to 5.1.0 or up by `npm install npm@latest -g`
|
||||
3. Set config by `npm config set script-shell = "path/to/bash.exe"`
|
||||
(default path is `C:\Program Files\Git\bin\bash.exe`)
|
||||
|
||||
### Instructions
|
||||
|
||||
1. Download a release and unzip or clone into a directory
|
||||
|
|
|
@ -395,7 +395,7 @@ module.exports = {
|
|||
}, {
|
||||
test: /\.js$/,
|
||||
loader: 'babel',
|
||||
exclude: [/node_modules/, /public\/vendor/]
|
||||
exclude: [/node_modules/, /public[\\/]vendor/]
|
||||
}, {
|
||||
test: /\.css$/,
|
||||
loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
|
||||
|
|
Loading…
Reference in a new issue