{ "info": { "author": "Micropyramid", "author_email": "hello@micropyramid.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-webpacker's documentation:\n=====================================\n\n.. image:: https://readthedocs.org/projects/django-webpacker/badge/?version=latest\n :target: http://django-webpacker.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://coveralls.io/repos/github/MicroPyramid/django-webpacker/badge.svg?branch=master\n :target: https://coveralls.io/github/MicroPyramid/django-webpacker?branch=master\n\n.. image:: https://landscape.io/github/MicroPyramid/django-webpacker/master/landscape.svg?style=flat\n :target: https://landscape.io/github/MicroPyramid/django-webpacker/master\n :alt: Code Health\n\n.. image:: https://img.shields.io/github/license/micropyramid/django-simple-forum.svg\n :target: https://pypi.python.org/pypi/django-simple-forum/\n\n\nIntroduction:\n=============\n\ndjango-webpacker is a django compressor tool which bundles css, js files to a single css, js file with webpack and updates your html files with respective css, js file path.\n\nIt supports django-storages to load compressed files from AWS S3.\n\nSource Code is available in Micropyramid Repository(https://github.com/MicroPyramid/django-webpacker).\n\n\nInstallation Procedure\n======================\n\n1. Install django-web-packer using the following command::\n\n pip install django-webpacker\n\n \t\t(or)\n\n git clone git://github.com/micropyramid/django-webpacker.git\n\n cd django-webpacker\n\n python setup.py install\n\n2. Add app name in project settings.py file::\n\n INSTALLED_APPS = [\n '..................',\n 'django-webpacker',\n '..................'\n ]\n\n3. Run npm init to intialize npm modules and it will create 'package.json' file which will contain package information. Update file with following dependencies::\n\n \"devDependencies\": {\n \"babel\": \"^6.23.0\",\n \"babel-core\": \"^6.24.0\",\n \"babel-loader\": \"^6.4.1\",\n \"css-loader\": \"^0.28.0\",\n \"extract-text-webpack-plugin\": \"^2.1.0\",\n \"file-loader\": \"^0.11.1\",\n \"html-webpack-inline-source-plugin\": \"0.0.7\",\n \"html-webpack-plugin\": \"^2.28.0\",\n \"image-webpack-loader\": \"^3.3.0\",\n \"less-loader\": \"^4.0.3\",\n \"node-sass\": \"^4.5.2\",\n \"react\": \"^15.4.2\",\n \"react-hot-loader\": \"^1.3.1\",\n \"sass-loader\": \"^6.0.3\",\n \"script-loader\": \"^0.7.0\",\n \"style-loader\": \"^0.16.1\",\n \"webpack\": \"^2.3.3\",\n \"webpack-bundle-tracker\": \"^0.2.0\",\n \"webpack-dev-server\": \"^2.4.2\"\n },\n \"dependencies\": {\n \"imports-loader\": \"^0.7.1\",\n \"jquery\": \"^3.2.1\"\n }\n\n4. Run npm install to install all package dependencies.\n\n npm install\n\n5. Updates Your html file with the following script, link stylesheet tags.\n\n \n\n \n\n6. Create webpack.config.js file with webpack.config.js file data. Update your project entry points with their respective paths. We can give multiple entry points(i.e separate entry point for each app) for the project. After compressing, separate css, file will be genarated with respective entry point name.\n\n\n7. Add the following details in settings file about compressing css, js files::\n\n WEB_PACK_FILES = [\n {'html_file_name': {{ HTML_FILE_RELATIVE_PATH }},\n 'webpack_js': {{ WEBPACK_ENTRY_POINT_KEY_NAME }},\n },\n {'html_file_name': {{ HTML_FILE_RELATIVE_PATH }},\n 'webpack_js': {{ WEBPACK_ENTRY_POINT_KEY_NAME }},\n },\n {'html_file_name': {{ HTML_FILE_RELATIVE_PATH }}',\n 'webpack_js': {{ WEBPACK_ENTRY_POINT_KEY_NAME }},\n },\n ]\n\n8. Run python manage.py compress_css_js_files to generate compressed css, js file. It will updates html file with respective compressed css, js files. Link, script tags will be loaded with compressed css, js files.\n\n\n9. If you use django storages, then add the following variable to settings file to load compressed css, js files from s3.\n\n\n # AWS details\n\n AWS_ACCESS_KEY_ID = \"Your AWS Access Key\"\n\n AWS_SECRET_ACCESS_KEY = \"Your AWS Secret Key\"\n\n AWS_BUCKET_NAME = \"Your AWS Bucket Name\"\n\n ENABLE_DJANGO_WEBPACK_AWS = True\n\nModules used:\n-------------\n\n * Django = 1.9.6\n\n\nWe are always looking to help you customize the whole or part of the code as you like.\n\n\nVisit our Django Development page `Here`_\n\n\nWe welcome your feedback and support, raise `github ticket`_ if you want to report a bug. Need new features? `Contact us here`_\n\n.. _contact us here: https://micropyramid.com/contact-us/\n.. _github ticket: https://github.com/MicroPyramid/django-webpacker/issues\n.. _Here: https://micropyramid.com/django-development-services/\n\n or\n\nmailto:: \"hello@micropyramid.com\"", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MicroPyramid/django-webpacker", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-webpacker", "package_url": "https://pypi.org/project/django-webpacker/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-webpacker/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/MicroPyramid/django-webpacker" }, "release_url": "https://pypi.org/project/django-webpacker/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A django compressor tool which bundles css, js files to single css, js file with webpack", "version": "0.1.1" }, "last_serial": 2765663, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4171fabdc1cf839e6476f6edb6d13c06", "sha256": "22fa2f59f0e2e5cb74bfae02018eacc8cfd47c1be85fd1564d88a83ab263977e" }, "downloads": -1, "filename": "django-webpacker-0.1.tar.gz", "has_sig": false, "md5_digest": "4171fabdc1cf839e6476f6edb6d13c06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3691, "upload_time": "2017-04-10T09:43:07", "url": "https://files.pythonhosted.org/packages/37/b6/a62c165a19a7779f060b7aaeb3c750e17f4812a1b1b855c7eed9ff0888f5/django-webpacker-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e1fd2a8cf004fe87e3765e3e365f7fb2", "sha256": "24efdafb35ab1c2c5616ef91cca3dd3cd3cb9079b4a17db5519810fdf262e030" }, "downloads": -1, "filename": "django-webpacker-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e1fd2a8cf004fe87e3765e3e365f7fb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4698, "upload_time": "2017-04-10T10:00:45", "url": "https://files.pythonhosted.org/packages/0e/7e/ad0ab6243883b1b4488302d41944e0a87ce1711416c2c52e89b8c3f3309f/django-webpacker-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e1fd2a8cf004fe87e3765e3e365f7fb2", "sha256": "24efdafb35ab1c2c5616ef91cca3dd3cd3cb9079b4a17db5519810fdf262e030" }, "downloads": -1, "filename": "django-webpacker-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e1fd2a8cf004fe87e3765e3e365f7fb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4698, "upload_time": "2017-04-10T10:00:45", "url": "https://files.pythonhosted.org/packages/0e/7e/ad0ab6243883b1b4488302d41944e0a87ce1711416c2c52e89b8c3f3309f/django-webpacker-0.1.1.tar.gz" } ] }