-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
2,538 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"extends": "standard", | ||
"plugins": [ | ||
"html" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
|
||
const path = require('path'); | ||
const express = require('express'); | ||
const webpack = require('webpack'); | ||
const webpackDevMiddleware = require('webpack-dev-middleware'); | ||
const webpackHotMiddleware = require('webpack-hot-middleware'); | ||
const webpackConfig = require('./webpack.dev.config.js'); | ||
const path = require('path') | ||
const express = require('express') | ||
const webpack = require('webpack') | ||
const webpackDevMiddleware = require('webpack-dev-middleware') | ||
const webpackHotMiddleware = require('webpack-hot-middleware') | ||
const webpackConfig = require('./webpack.dev.config.js') | ||
|
||
const compiler = webpack(webpackConfig); | ||
const compiler = webpack(webpackConfig) | ||
|
||
const app = express(); | ||
const app = express() | ||
|
||
app.use(express.static(path.join(__dirname, '../'))); | ||
app.use(express.static(path.join(__dirname, '../'))) | ||
|
||
app.use(webpackDevMiddleware(compiler, { | ||
// public path should be the same with webpack config | ||
publicPath: webpackConfig.output.publicPath, | ||
noInfo: true | ||
})); | ||
})) | ||
|
||
app.use(webpackHotMiddleware(compiler)); | ||
app.use(webpackHotMiddleware(compiler)) | ||
|
||
app.listen(8888); | ||
app.listen(8888) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.