1 | {
|
2 | "presets": ["env", "stage-2", "react"],
|
3 | "plugins": [
|
4 | ["module-resolver", {
|
5 | "root": ["."],
|
6 | "alias": {
|
7 | "Components": "./dist/Components",
|
8 | "Actions": "./dist/Actions",
|
9 | "Containers": "./dist/Containers",
|
10 | "Services": "./dist/Services",
|
11 | "ClientRouter": "./dist/Routing/Client/index.js",
|
12 | "Environments": "./dist/Environments",
|
13 | "Reducers": "./dist/Reducers",
|
14 | "Stores": "./dist/Store/index.js",
|
15 | "yahoi/client-store": "yahoi/dist/Store/client-store",
|
16 | "yahoi/server-store": "yahoi/dist/Store/server-store",
|
17 | "yahoi/i18n": "yahoi/dist/Client/i18n"
|
18 |
|
19 | }
|
20 | }],
|
21 | "transform-async-to-generator",
|
22 | "transform-decorators-legacy",
|
23 | "transform-regenerator",
|
24 | "transform-object-rest-spread",
|
25 | ["css-modules-transform", {
|
26 | "extensions": [".css", ".scss", ".less"],
|
27 | "generateScopedName": "[name]--[local]--[hash:base64:5]",
|
28 | "extractCss": "./dist/stylesheets/out-prod.css"
|
29 | }]
|
30 | ],
|
31 | "env": {
|
32 | "client-prod": {
|
33 | "plugins": [
|
34 | "system-import-transformer",
|
35 | ["import-inspector", {
|
36 | "serverSideRequirePath": true,
|
37 | "webpackRequireWeakId": true
|
38 | }]
|
39 | ]
|
40 | },
|
41 | "development": {
|
42 | "plugins": [
|
43 | ["module-resolver", {
|
44 | "root": ["."],
|
45 | "alias": {
|
46 | "Components": "./src/Components",
|
47 | "Actions": "./src/Actions",
|
48 | "Containers": "./src/Containers",
|
49 | "Services": "./src/Services",
|
50 | "ClientRouter": "./src/Routing/Client/index.js",
|
51 | "Environments": "./src/Environments",
|
52 | "Reducers": "./src/Reducers",
|
53 | "Stores": "./src/Store/index.js",
|
54 | "yahoi/client-store": "yahoi/dist/Store/client-store",
|
55 | "yahoi/server-store": "yahoi/dist/Store/server-store",
|
56 | "yahoi/i18n": "yahoi/dist/Client/i18n"
|
57 | }
|
58 | }],
|
59 | "system-import-transformer",
|
60 | ]
|
61 | },
|
62 | "production": {
|
63 | "plugins": [
|
64 | ["babel-plugin-styled-components", {
|
65 | "ssr": true
|
66 | }]
|
67 | ]
|
68 | }
|
69 | }
|
70 | } |
\ | No newline at end of file |