Merge pull request #662 from alecklandgraf/patch-1
Update reactjs.txt to use babel instead of jsx
This commit is contained in:
@@ -3,14 +3,14 @@
|
|||||||
Facebook React Support
|
Facebook React Support
|
||||||
======================
|
======================
|
||||||
|
|
||||||
Assuming you have `npm` available, you can integrate React with Django Compressor by following the
|
Assuming you have `npm` available, you can install `babel` via `npm install -g babel` and integrate React with
|
||||||
`react-tools installation instructions`_ and adding an appropriate ``COMPRESS_PRECOMPILERS``
|
Django Compressor by following the `react-tools installation instructions`_ and adding an appropriate
|
||||||
setting:
|
``COMPRESS_PRECOMPILERS`` setting:
|
||||||
|
|
||||||
.. code-block:: django
|
.. code-block:: django
|
||||||
|
|
||||||
COMPRESS_PRECOMPILERS = (
|
COMPRESS_PRECOMPILERS = (
|
||||||
('text/jsx', 'cat {infile} | jsx > {outfile}'),
|
('text/jsx', 'cat {infile} | babel > {outfile}'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user