-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
99 lines (86 loc) · 3 KB
/
webpack.config.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
var webpack = require("webpack");
module.exports = {
entry: [
"script!jquery/dist/jquery.min.js",
"script!foundation-sites/dist/foundation.min.js",
"./app/app.jsx"
],
externals: {
jquery: "jQuery"
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
],
output: { path: __dirname, filename: "./public/bundle.js" },
resolve: {
root: __dirname,
alias: {
Main: "app/components/main.jsx",
MainContainer: "app/components/MainContainer.jsx",
UIstore: "app/store/UIstore.js",
FirstPage: "app/components/firstpage.jsx",
Homepage: "app/components/homepage.jsx",
ListChatContainer: "app/components/chat/ListChatContainer.jsx",
LoginDialog: "app/components/loginmodal.jsx",
SignupDialog: "app/components/signupmodal.jsx",
Toolbar: "app/components/toolbar.jsx",
Nav: "app/components/nav.jsx",
DrawerOpenRightExample: "app/components/drawer.jsx",
NewChatDrawer: "app/components/drawer/newchatdrawer.jsx",
NotFound: "app/components/dashboard/NotFound.jsx",
Profile: "app/components/dashboard/profile.jsx",
Settings: "app/components/dashboard/settings.jsx",
Invites: "app/components/dashboard/invites.jsx",
FindFriends: "app/components/dashboard/FindFriends.jsx",
PrivateNotes: "app/components/dashboard/privatenotes.jsx",
FriendList: "app/components/dashboard/FriendList.jsx",
AcceptRequests: "app/components/dashboard/AcceptRequests.jsx",
Chat: "app/components/chat.jsx",
Board: "app/components/board.jsx",
Boards: "app/components/Note.jsx",
Chatbar: "app/components/toolbars/chattoolbar.jsx",
Msgbar: "app/components/toolbars/msgtoolbar.jsx",
TimeTable: "app/components/dashboard/timetable.jsx",
Events: "app/components/dashboard/events.jsx",
Lock: "public/assets/js/lock.min.js",
Boardbar: "app/components/toolbars/boardtoolbar.jsx",
Verify: "app/components/authentication/verify.jsx",
applicationStyles: "app/styles/app.scss",
HomepageStyles: "app/styles/homepage.scss",
noteStyle: "app/styles/notestyle.scss",
snowStyle: "app/styles/quill.snow.scss",
coreStyle: "app/styles/quill.core.css",
bubbleStyle: "app/styles/quill.bubble.css"
},
extensions: ["", ".js", ".jsx"]
},
module: {
loaders: [
{
loader: ["babel-loader"],
query: {
presets: ["react", "es2015", "stage-0"],
plugins: ["transform-decorators-legacy", "transform-class-properties"]
},
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/
}
]
},
devtool: "cheap-module-eval-source-map"
};
// module: {
// loaders: [
// {
// loaders:['react-hot','babel-loader'],
// query: {presets: ["react", "es2015", "stage-0"]},
// test: /\.jsx?$/,
// exclude: /(node_modules|bower_components)/
// }
// ]
// },
// devtool: 'cheap-module-eval-source-map'
// };