use development react in dev

This commit is contained in:
afc163 2017-11-07 10:43:49 +08:00
parent 5e7c735935
commit f02cd9cd52
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ module.exports = {
'create-react-class': 'preact-compat/lib/create-react-class',
'react-router': 'react-router',
});
} else if (isDev) {
} else if (!isDev) {
config.externals = Object.assign({}, config.externals, {
react: 'React',
'react-dom': 'ReactDOM',

View File

@ -112,7 +112,7 @@
{{ content | safe }}
</div>
{% if not usePreact %}
{% if isDev %}
{% if not isDev %}
<script src="https://gw.alipayobjects.com/as/g/component/react/16.0.0/react.production.min.js"></script>
<script src="https://gw.alipayobjects.com/as/g/component/react/16.0.0/react-dom.production.min.js"></script>
{% endif %}