File tree 3 files changed +9
-11
lines changed
lib/generators/react_on_rails/templates/base/base/config/webpack
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change
1
+ # Used by webpacker_lite to configure the helpers and by webpack from the
2
+ # client/webpack.config.js file, in variable `paths`.
1
3
default : &default
2
4
output : public
3
- assets : webpack
4
5
manifest : manifest.json
5
- node_modules : client/node_modules
6
- source : client/app
7
6
8
7
development :
9
8
<< : *default
Original file line number Diff line number Diff line change 68
68
"scripts" : {
69
69
"lint" : " eslint --ext .js,.jsx ." ,
70
70
"test" : " yarn run build:test && rspec" ,
71
- "build:test" : " NODE_ENV=test yarn run build:client && NODE_ENV=test yarn run build:server" ,
72
- "build:production:client" : " NODE_ENV=production webpack --config webpack.client.rails.build.config.js" ,
73
- "build:production:server" : " NODE_ENV=production webpack --config webpack.server.rails.build.config.js" ,
74
- "build:client" : " webpack --config webpack.client.rails.build.config.js" ,
71
+ "build:test" : " yarn run build:test:client && yarn run build:test:server" ,
72
+ "build:test:client" : " NODE_ENV=test webpack --config webpack.client.rails.build.config.js" ,
73
+ "build:test:server" : " NODE_ENV=test webpack --config webpack.server.rails.build.config.js" ,
75
74
"build:dev:client" : " NODE_ENV=development webpack -w --config webpack.client.rails.build.config.js" ,
76
75
"build:dev:server" : " NODE_ENV=development webpack -w --config webpack.server.rails.build.config.js" ,
77
- "build:server" : " webpack --config webpack.server.rails.build.config.js" ,
76
+ "build:production:client" : " NODE_ENV=production webpack --config webpack.client.rails.build.config.js" ,
77
+ "build:production:server" : " NODE_ENV=production webpack --config webpack.server.rails.build.config.js" ,
78
78
"hot-assets" : " NODE_ENV=development babel-node server-rails-hot.js" ,
79
79
"install-react-on-rails" : " rm -rf node_modules/react-on-rails && npm i 'file:../../..'"
80
80
},
Original file line number Diff line number Diff line change
1
+ # Used by webpacker_lite to configure the helpers and by webpack from the
2
+ # client/webpack.client.base.config.js and other sibling config files, using variable `paths`.
1
3
default : &default
2
- config : client/webpack
3
4
output : public
4
- assets : webpack
5
5
manifest : manifest.json
6
- source : client/app
7
6
8
7
development :
9
8
<< : *default
You can’t perform that action at this time.
0 commit comments