Skip to content

Commit

Permalink
Fix production
Browse files Browse the repository at this point in the history
  • Loading branch information
ogom committed Dec 5, 2015
1 parent c9ac15a commit dec881f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
!/log/.keep
/tmp
/node_modules
/public/assets
/vendor/assets
1 change: 1 addition & 0 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
Rails.application.config.assets.precompile += %w(app.css bundle.js)
6 changes: 3 additions & 3 deletions private/static/webpack.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ module.exports = {
'./js/index.js'
],
output: {
path: __dirname + '/static/',
path: __dirname + '../../../vendor/assets/',
publicPath: '/static/',
filename: 'bundle.js',
filename: 'javascripts/bundle.js',
},
plugins: [
new webpack.NoErrorsPlugin(),
devFlagPlugin,
new ExtractTextPlugin('app.css')
new ExtractTextPlugin('stylesheets/app.css')
],
module: {
loaders: [
Expand Down

0 comments on commit dec881f

Please sign in to comment.