-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scope webpack config through env (#191)
* Scope webpack config through env * Disable dev server in test and production * Add test config
- Loading branch information
1 parent
3c488f9
commit 7adaf8d
Showing
8 changed files
with
59 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
# Restart webpack-dev-server if you make changes here | ||
enabled: true | ||
host: localhost | ||
port: 8080 | ||
default: &default | ||
enabled: true | ||
host: localhost | ||
port: 8080 | ||
|
||
development: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
enabled: false | ||
|
||
production: | ||
<<: *default | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
# Restart webpack-watcher or webpack-dev-server if you make changes here | ||
config: config/webpack | ||
entry: packs | ||
output: public | ||
node_modules: node_modules | ||
source: app/javascript | ||
extensions: | ||
- .coffee | ||
- .js | ||
- .jsx | ||
- .ts | ||
- .vue | ||
- .sass | ||
- .scss | ||
- .css | ||
- .png | ||
- .svg | ||
- .gif | ||
- .jpeg | ||
default: &default | ||
config: config/webpack | ||
entry: packs | ||
output: public | ||
manifest: manifest.json | ||
node_modules: node_modules | ||
source: app/javascript | ||
extensions: | ||
- .coffee | ||
- .js | ||
- .jsx | ||
- .ts | ||
- .vue | ||
- .sass | ||
- .scss | ||
- .css | ||
- .png | ||
- .svg | ||
- .gif | ||
- .jpeg | ||
|
||
development: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
manifest: manifest-test.json | ||
|
||
production: | ||
<<: *default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Note: You must restart bin/webpack-watcher for changes to take effect | ||
|
||
const merge = require('webpack-merge') | ||
const sharedConfig = require('./shared.js') | ||
|
||
module.exports = merge(sharedConfig, {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters