Metadata-Version: 1.1
Name: djangomix
Version: 1.0.0
Summary: Django integration for Laravel Mix
Home-page: https://github.com/m-a-k-o/django-mix
Author: Marek Racik
Author-email: marek@racik.info
License: UNKNOWN
Description: # Django Mix
        Django integration for [Laravel Mix](https://github.com/JeffreyWay/laravel-mix)
        
        Laravel Mix helper in python representation to easy usage with laravel-mix npm package in Django projects.
        
        ## Usage
        
        ```
        <script src="{% mix 'app.js' 'polls/static' %}"></script>
        ```
        
         The paths are related to webpack.mix.js configuration.
        
         This example use following configration of webpack.mix.js:
        
        ```
        let mix = require('laravel-mix');
        
        let staticPath = 'polls/static'
        let resourcesPath = 'polls/resources'
        
        if (process.argv.includes('--browser-sync')) {
          mix.browserSync('localhost:8000')
        }
        
        // setResroucesRoots add prefix to url() in scss on example: from /images/close.svg?a898fb5d07d8c21381d4566b74e12d93 to /static/images/close.svg?a898fb5d07d8c21381d4566b74e12d93
        mix.setResourceRoot('/static/')
        mix.setPublicPath('polls/static/')
        
        mix.js(`${resourcesPath}/js/app.js`, `${staticPath}/`)
        ```
        
Keywords: Django Mix
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires: Django (>=1.11)
