Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
753463805e87
Commit
d0d34786
authored
Mar 02, 2017
by
Mike Greiling
Browse files
rename application entry point and change manifest to runtime
parent
3c66002497d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/
applicatio
n.js
→
app/assets/javascripts/
mai
n.js
View file @
75346380
File moved
app/views/layouts/_head.html.haml
View file @
75346380
...
...
@@ -28,9 +28,9 @@
=
stylesheet_link_tag
"application"
,
media:
"all"
=
stylesheet_link_tag
"print"
,
media:
"print"
=
javascript_include_tag
(
*
webpack_asset_paths
(
"
manifest
"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"
runtime
"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"common"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"
applicatio
n"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"
mai
n"
))
-
if
content_for?
(
:page_specific_javascripts
)
=
yield
:page_specific_javascripts
...
...
config/webpack.config.js
View file @
75346380
...
...
@@ -20,7 +20,7 @@ var config = {
common
:
'
./commons/index.js
'
,
common_vue
:
[
'
vue
'
,
'
vue-resource
'
],
common_d3
:
[
'
d3
'
],
application
:
'
./applicatio
n.js
'
,
main
:
'
./mai
n.js
'
,
blob_edit
:
'
./blob_edit/blob_edit_bundle.js
'
,
boards
:
'
./boards/boards_bundle.js
'
,
simulate_drag
:
'
./test_utils/simulate_drag.js
'
,
...
...
@@ -47,7 +47,7 @@ var config = {
output
:
{
path
:
path
.
join
(
ROOT_PATH
,
'
public/assets/webpack
'
),
publicPath
:
'
/assets/webpack/
'
,
filename
:
IS_PRODUCTION
?
'
[name]
-
[chunkhash].js
'
:
'
[name].js
'
filename
:
IS_PRODUCTION
?
'
[name]
.
[chunkhash].
bundle.
js
'
:
'
[name].
bundle.
js
'
},
devtool
:
'
inline-source-map
'
,
...
...
@@ -124,7 +124,7 @@ var config = {
// create cacheable common library bundles
new
webpack
.
optimize
.
CommonsChunkPlugin
({
names
:
[
'
applicatio
n
'
,
'
common
'
,
'
manifest
'
],
names
:
[
'
mai
n
'
,
'
common
'
,
'
runtime
'
],
}),
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment