Skip to content
Snippets Groups Projects
Commit d0d34786 authored by Mike Greiling's avatar Mike Greiling
Browse files

rename application entry point and change manifest to runtime

parent f5f0be53
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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("application"))
= javascript_include_tag(*webpack_asset_paths("main"))
 
- if content_for?(:page_specific_javascripts)
= yield :page_specific_javascripts
Loading
Loading
Loading
Loading
@@ -20,7 +20,7 @@ var config = {
common: './commons/index.js',
common_vue: ['vue', 'vue-resource'],
common_d3: ['d3'],
application: './application.js',
main: './main.js',
blob_edit: './blob_edit/blob_edit_bundle.js',
boards: './boards/boards_bundle.js',
simulate_drag: './test_utils/simulate_drag.js',
Loading
Loading
@@ -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',
Loading
Loading
@@ -124,7 +124,7 @@ var config = {
 
// create cacheable common library bundles
new webpack.optimize.CommonsChunkPlugin({
names: ['application', 'common', 'manifest'],
names: ['main', 'common', 'runtime'],
}),
],
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment