Introduce PostCSS for auto-prefixing, extract vendors in chunk.
authorAlexandre Segura <mex.zktk@gmail.com>
Thu, 09 Feb 2017 16:13:10 +0100
changeset 315 f5cae9eaa296
parent 314 27377f679c16
child 316 ffa87fe82904
Introduce PostCSS for auto-prefixing, extract vendors in chunk.
package.json
postcss.config.js
src/iconolab/templates/iconolab_base.html
--- a/package.json	Thu Feb 09 16:09:25 2017 +0100
+++ b/package.json	Thu Feb 09 16:13:10 2017 +0100
@@ -44,6 +44,7 @@
     "file-loader": "^0.8.4",
     "minimalist": "^1.0.0",
     "ncp": "^2.0.0",
+    "postcss-loader": "^1.2.2",
     "rimraf": "^2.5.4",
     "style-loader": "^0.13.1",
     "vue-loader": "^9.0.0",
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/postcss.config.js	Thu Feb 09 16:13:10 2017 +0100
@@ -0,0 +1,5 @@
+module.exports = {
+  plugins: [
+    require('autoprefixer')({ /* ...options */ })
+  ]
+}
--- a/src/iconolab/templates/iconolab_base.html	Thu Feb 09 16:09:25 2017 +0100
+++ b/src/iconolab/templates/iconolab_base.html	Thu Feb 09 16:13:10 2017 +0100
@@ -27,6 +27,7 @@
       <footer>
         {% include "partials/footer.html" %}
       </footer>
+      <script src="{% static 'iconolab/js/vendor.js' %}" type="text/javascript"></script>
       <script src="{% static 'iconolab/js/iconolab.js' %}" type="text/javascript"></script>
 	    {% block footer_js %} {% endblock %}
       {% if IS_JS_DEV_MODE %}