github / webpack-config-github Goto Github PK
View Code? Open in Web Editor NEWAn opinionated webpack config for GitHub apps.
License: MIT License
An opinionated webpack config for GitHub apps.
License: MIT License
github-graphql-relay-example could use this configuration.
I don't like how the current config needs to mutate the ENV vars in order have getGraphQLProjectConfig
work as expected. It would be nice if you could pass something to getGraphQLProjectConfig
as a fallback like getGraphQLProjectConfig('production')
. Even better would be avoiding a hard coded naming requirement and selecting the first endpoint by default. Often there will only be one, no need for anyone to have to configure a name in that case.
webpack-config-github/webpack.config.js
Lines 213 to 217 in 1ae512d
How to create server.js for project like examples/relay? Any "webpack" solution not working.
webpack-config-github/webpack.config.js
Lines 98 to 99 in 1ae512d
config.devtool = 'source-map'
is crashing for some reason.
CC: @koddsson
The relay-compiler
includes many hard coded console.log
statements that look at out place in the webpack logging stream.
https://github.com/facebook/relay/blob/9b7c7d0fecdd831b6d67edd4346ccd028660613d/packages/relay-compiler/graphql-compiler/codegen/CodegenRunner.js#L230
https://github.com/facebook/relay/blob/9b7c7d0fecdd831b6d67edd4346ccd028660613d/packages/relay-compiler/graphql-compiler/codegen/CodegenRunner.js#L237
https://github.com/facebook/relay/blob/9b7c7d0fecdd831b6d67edd4346ccd028660613d/packages/relay-compiler/graphql-compiler/codegen/CodegenRunner.js#L315
https://github.com/facebook/relay/blob/9b7c7d0fecdd831b6d67edd4346ccd028660613d/packages/relay-compiler/codegen/RelayFileWriter.js#L261-L267
CC: @koddsson
Settings watchman
to true
will crash unless the user has watchman installed. Not a great experience as watchman is an external dependency. Users may not have it installed or environments like production or CI systems won't either. If its truly required, it would be nice if it was an npm dependency. Not sure what the best way to integrate this is.
CC: @koddsson
On a simple example, Runner.compileAll
is called at least twice.
Actual logged output.
$ cd examples/relay
$ webpack
Parsed default in 0.00s
Writing default
Writer time: 0.03s [0.03s compiling, 0.00s generating, 0.00s extra]
Unchanged: 0 files
Written default in 0.03s
Parsed default in 0.00s
Writing default
Writer time: 0.00s [0.00s compiling, 0.00s generating, 0.00s extra]
Unchanged: 0 files
Written default in 0.00s
CC: @koddsson
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.