-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathReactJs.config.php
32 lines (31 loc) · 1.05 KB
/
ReactJs.config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
return new \Phalcon\Config([
'setup' => [
'development' => [
'/js/react-full.js',
'/js/react-bootstrap.min.js',
'/js/init.react-bootstrap.js'
],
'production' => [
'//cdn.jsdelivr.net/g/react@15.4.2(react.min.js+react-dom.min.js+react-dom-server.min.js)',
'//cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.30.7/react-bootstrap.min.js',
'/js/init.react-bootstrap.js'
],
],
'babel' => [
'localUrl' => '/js/babel.min.js',
'remoteUrl' => 'https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.1/babel.min.js',
'path' => __DIR__ . '/../public/js/babel.min.js'
],
'react' => [
'path' => __DIR__ . '/../public/js/react-full.js'
],
'target' => [
'path' => __DIR__ . '/../public/js/react/',
'url' => '/js/react/'
],
'reactBootstrap' => [
'path' => __DIR__ . '/../public/js/react-bootstrap.min.js',
'init' => __DIR__ . '/../public/js/init.react-bootstrap.js'
]
]);