Skip to content

Commit

Permalink
Merge pull request #693 from liqd/ym-2017-02-mitigat-webpack-library-…
Browse files Browse the repository at this point in the history
…name-clash

Remove clash between adhocracy4 library names
  • Loading branch information
slomo committed Feb 22, 2017
2 parents 49a4af3 + 5f5ed42 commit 3ce7d7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions euth_wagtail/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% endblock %}

{% render_bundle 'vendor' 'css' %}
{% render_bundle 'opin' 'css' %}
{% render_bundle 'adhocracy4' 'css' %}

{# Global javascript #}
<script type="text/javascript" src="{% url 'javascript-catalog' %}"></script>
Expand All @@ -39,7 +39,7 @@
</script>

{% render_bundle 'vendor' 'js' %}
{% render_bundle 'opin' 'js' %}
{% render_bundle 'adhocracy4' 'js' %}
</head>

<body class="{% block body_class %}{% endblock %}">
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var autoprefixer = require('autoprefixer');

module.exports = {
entry: {
opin: [
adhocracy4: [
'./euth_wagtail/assets/scss/all.scss',
'./euth/contrib/static/js/app.js'
],
Expand All @@ -49,7 +49,7 @@ module.exports = {
devtool: 'eval',
output: {
libraryTarget: 'var',
library: 'adhocracy4',
library: '[name]',
path: './euth_wagtail/static/',
publicPath: "/static/",
filename: '[name].js'
Expand Down

0 comments on commit 3ce7d7d

Please sign in to comment.