Skip to content

Commit 84d0924

Browse files
committed
Migrate to webpack 4
1 parent 0fc70e7 commit 84d0924

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
"build": "webpack --bail",
6161
"build:production": "NODE_ENV=production webpack --bail -p",
6262
"postinstall": "cd node_modules/codemirror && rollup -c",
63-
"start": "webpack-dev-server --optimize-minimize"
63+
"start": "webpack-dev-server"
6464
}
6565
}

templates/api.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
{% block scripts %}
55
<script src="{{ url_for('static', filename='api.js') }}"></script>
6+
<link rel="stylesheet" href="{{ url_for('static', filename='api.css') }}">
67
{% endblock %}
78

89
{% block styles %}

templates/base.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313
<title>{% block title %}{{ title }}{% endblock %}</title>
1414

15-
<script src="{{ url_for('static', filename='default.js') }}"></script>
1615
<script src="{{ url_for('static', filename='common.js') }}"></script>
17-
<link rel="stylesheet" href="{{ url_for('static', filename='default.css') }}"/>
1816
<link rel="stylesheet" href="{{ url_for('static', filename='common.css') }}"/>
1917
</head>
2018
<body>

templates/reference.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
{% block scripts %}
66
<script src="{{ url_for('static', filename='reference.js') }}"></script>
7+
<link rel="stylesheet" href="{{ url_for('static', filename='reference.css') }}">
78
{% endblock %}
89

910
{% block content %}

templates/tutorial.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
{% block scripts %}
66
<script src="{{ url_for('static', filename='tutorial.js') }}"></script>
7+
<link rel="stylesheet" href="{{ url_for('static', filename='tutorial.css') }}">
78
{% endblock %}
89

910
{% block content %}

webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ module.exports = (params = {}) => {
3838

3939
devtool: sourcemaps ? 'source-map' : false,
4040

41+
mode: env,
42+
4143
module: {
4244
rules: [
4345
{

0 commit comments

Comments
 (0)