up bootstrap
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700,900&subset=cyrillic,cyrillic-ext"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Занятие по загрузчику</title>
|
||||
<script type="systemjs-importmap" src="/importmap.json"></script>
|
||||
<script src="extlib/systemjs/system.js"></script>
|
||||
<script src="extlib/systemjs/extras/amd.js"></script>
|
||||
<script src="extlib/systemjs/extras/named-register.js"></script>
|
||||
<script src="extlib/systemjs/extras/named-exports.js"></script>
|
||||
<script src="extlib/systemjs/extras/transform.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
System.import('./bootstrap.js');
|
||||
</script>
|
||||
<div id="bootstrap"></div>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +0,0 @@
|
||||
const express = require("express");
|
||||
const app = express();
|
||||
|
||||
|
||||
app.use(express.static(__dirname + "/dist"));
|
||||
|
||||
|
||||
app.listen(8088, () => console.log("Listening on port 8088!"));
|
||||
|
||||
module.exports = app;
|
||||
@@ -1,17 +0,0 @@
|
||||
const hotClient = require('webpack-hot-client');
|
||||
const middleware = require('webpack-dev-middleware');
|
||||
const webpack = require('webpack');
|
||||
const config = require('../webpack.config');
|
||||
const app = require('../stubs');
|
||||
const compiler = webpack(config);
|
||||
const { publicPath } = config.output;
|
||||
const options = { }; // webpack-hot-client options
|
||||
|
||||
// we recommend calling the client _before_ adding the dev middleware
|
||||
const client = hotClient(compiler, options);
|
||||
const { server } = client;
|
||||
server.on('listening', () => {
|
||||
app.use(middleware(compiler, { publicPath, historyApiFallback: true }));
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user