diff --git a/.gitignore b/.gitignore index 0e46bec..afe0a65 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ !/log/.keep /tmp /node_modules +/public/assets +/vendor/assets diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 01ef3e6..7b6afcf 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -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) diff --git a/private/static/webpack.production.js b/private/static/webpack.production.js index da26b63..2492c39 100644 --- a/private/static/webpack.production.js +++ b/private/static/webpack.production.js @@ -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: [