Last active
July 26, 2017 22:19
-
-
Save frankleng/9b0f5303c7ecc3479a17e9f77ca78cfe to your computer and use it in GitHub Desktop.
Generate webpack dev config
This file contains hidden or 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
| { | |
| "target":"web", | |
| "node":{ | |
| "__dirname":true, | |
| "__filename":true | |
| }, | |
| "externals":[ | |
| ], | |
| "devtool":"source-map", | |
| "performance":false, | |
| "context":"/appRoot/myApp/src/client", | |
| "entry":{ | |
| "index":[ | |
| "react-hot-loader/patch", | |
| "webpack-hot-middleware/client?reload=true&path=http://localhost:7331/__webpack_hmr", | |
| "regenerator-runtime/runtime", | |
| "./index.js" | |
| ] | |
| }, | |
| "output":{ | |
| "path":"/appRoot/myApp/build/client", | |
| "filename":"[name].js", | |
| "chunkFilename":"[name].js", | |
| "libraryTarget":"var", | |
| "hotUpdateChunkFilename":"[id].hot-update.js", | |
| "hotUpdateMainFilename":"hot-update.json", | |
| "publicPath":"http://localhost:7331/client/" | |
| }, | |
| "resolve":{ | |
| "modules":[ | |
| "src/shared", | |
| "node_modules" | |
| ], | |
| "extensions":[ | |
| ".js", | |
| ".jsx", | |
| ".json" | |
| ] | |
| }, | |
| "plugins":[ | |
| { | |
| }, | |
| { | |
| "definitions":{ | |
| "process.env.NODE_ENV":"\"development\"", | |
| "process.env.IS_CLIENT":"true", | |
| "process.env.IS_SERVER":"false", | |
| "process.env.IS_NODE":"false" | |
| } | |
| }, | |
| { | |
| "definitions":{ | |
| "process.env.GOOGLE_MAPS_API_KEY":"\"AIzaSyAEH0LXkzywbyFu_QQlx50ztO5ExbHyi00\"" | |
| } | |
| }, | |
| { | |
| "options":{ | |
| "path":"/appRoot/myApp/build/client", | |
| "filename":"assets.json", | |
| "prettyPrint":false, | |
| "update":false, | |
| "fullPath":true | |
| } | |
| }, | |
| { | |
| }, | |
| { | |
| "options":{ | |
| }, | |
| "fullBuildTimeout":200, | |
| "requestTimeout":10000 | |
| }, | |
| { | |
| "filename":"[name].css", | |
| "id":1, | |
| "options":{ | |
| "allChunks":true | |
| } | |
| }, | |
| { | |
| "name":"HappyPack", | |
| "state":{ | |
| "loaders":[ | |
| ], | |
| "baseLoaderRequest":"", | |
| "foregroundThreadPool":null, | |
| "verbose":false, | |
| "debug":false | |
| }, | |
| "config":{ | |
| "id":"happypack-javascript", | |
| "compilerId":"default", | |
| "threads":4, | |
| "verbose":false, | |
| "loaders":[ | |
| { | |
| "path":"babel-loader", | |
| "query":{ | |
| "babelrc":false, | |
| "presets":[ | |
| [ | |
| "env", | |
| { | |
| "es2015":{ | |
| "modules":false | |
| } | |
| } | |
| ], | |
| "react", | |
| "stage-2" | |
| ], | |
| "plugins":[ | |
| "lodash", | |
| "react-hot-loader/babel", | |
| "transform-react-jsx-self", | |
| "transform-react-jsx-source" | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| "id":"happypack-javascript" | |
| }, | |
| { | |
| "name":"HappyPack", | |
| "state":{ | |
| "loaders":[ | |
| ], | |
| "baseLoaderRequest":"", | |
| "foregroundThreadPool":null, | |
| "verbose":false, | |
| "debug":false | |
| }, | |
| "config":{ | |
| "id":"happypack-devclient-css-modules", | |
| "compilerId":"default", | |
| "threads":4, | |
| "verbose":false, | |
| "loaders":[ | |
| "style-loader", | |
| { | |
| "path":"css-loader", | |
| "query":{ | |
| "sourceMap":true, | |
| "modules":true, | |
| "localIdentName":"[name]_[local]_[hash:base64:5]" | |
| } | |
| }, | |
| { | |
| "path":"postcss-loader" | |
| }, | |
| { | |
| "path":"sass-loader", | |
| "options":{ | |
| "outputStyle":"expanded", | |
| "sourceMap":true | |
| } | |
| } | |
| ] | |
| }, | |
| "id":"happypack-devclient-css-modules" | |
| }, | |
| { | |
| "name":"HappyPack", | |
| "state":{ | |
| "loaders":[ | |
| ], | |
| "baseLoaderRequest":"", | |
| "foregroundThreadPool":null, | |
| "verbose":false, | |
| "debug":false | |
| }, | |
| "config":{ | |
| "id":"happypack-devclient-css", | |
| "compilerId":"default", | |
| "threads":4, | |
| "verbose":false, | |
| "loaders":[ | |
| { | |
| "path":"css-loader", | |
| "query":{ | |
| "sourceMap":true | |
| } | |
| }, | |
| { | |
| "path":"postcss-loader" | |
| }, | |
| { | |
| "path":"sass-loader", | |
| "options":{ | |
| "outputStyle":"expanded", | |
| "sourceMap":true | |
| } | |
| } | |
| ] | |
| }, | |
| "id":"happypack-devclient-css" | |
| }, | |
| { | |
| "options":{ | |
| } | |
| } | |
| ], | |
| "module":{ | |
| "rules":[ | |
| { | |
| "test": /\.jsx?$/, | |
| "loader":"happypack/loader?id=happypack-javascript", | |
| "include":[ | |
| "/appRoot/myApp/src/client", | |
| "/appRoot/myApp/src/shared", | |
| "/appRoot/myApp/config" | |
| ] | |
| }, | |
| { | |
| test: /(\.scss|\.css)$/, | |
| exclude: /(node_modules|bower_components|Root\.css)/, | |
| "loaders":[ | |
| "happypack/loader?id=happypack-devclient-css-modules" | |
| ] | |
| }, | |
| { | |
| "test":{ | |
| }, | |
| "include":{ | |
| }, | |
| "loader":[ | |
| { | |
| "loader":"/appRoot/myApp/node_modules/extract-text-webpack-plugin/dist/loader.js", | |
| "options":{ | |
| "omit":1, | |
| "remove":true | |
| } | |
| }, | |
| { | |
| "loader":"style-loader" | |
| }, | |
| { | |
| "loader":"happypack/loader?id=happypack-devclient-css" | |
| } | |
| ] | |
| }, | |
| { | |
| "test":{ | |
| }, | |
| "loader":"file-loader", | |
| "query":{ | |
| "publicPath":"http://localhost:7331/client/", | |
| "emitFile":true | |
| } | |
| } | |
| ] | |
| }, | |
| "stats":"detailed" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment