Skip to content

Commit

Permalink
fix: ensure css files move with babel dist
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Dec 3, 2019
1 parent 5ea877a commit ca95547
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/examples/graphiql-webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module.exports = {
'react-hot-loader/patch', // activate HMR for React
'webpack-dev-server/client?http://localhost:8080', // bundle the client for webpack-dev-server and connect to the provided endpoint
'webpack/hot/only-dev-server', // bundle the client for hot reloading, only- means to only hot reload for successful updates
'./index.js', // the entry point of our app
'./index.jsx', // the entry point of our app
]
: './index.js',
: './index.jsx',
context: path.resolve(__dirname, './src'),
mode: 'development',
devtool: 'inline-source-map',
Expand Down
5 changes: 3 additions & 2 deletions packages/graphiql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
"scripts": {
"webpack": "webpack --config resources/webpack.config.js",
"analyze-bundle": "cross-env NODE_ENV=production CDN=1 ANALYZE=1 yarn webpack -p",
"build": "yarn build-clean && yarn build-js && yarn build-flow",
"build": "yarn build-clean && yarn build-cjs && yarn build-esm && yarn build-flow",
"build-clean": "rimraf esm dist",
"build-js": "babel src --ignore __tests__ --out-dir dist/ && cross-env ESM=1 babel src --ignore __tests__ --out-dir esm/",
"build-cjs": "babel src --ignore __tests__ --out-dir dist/ && mkdirp dist/css && copy src/css dist/css/",
"build-esm": "cross-env ESM=1 babel src --ignore __tests__ --out-dir esm/ && mkdirp dist/css && copy src/css esm/css/",
"build-bundles": "yarn build-bundles-clean && yarn build-bundles-dev && yarn build-bundles-min",
"build-bundles-dev": "cross-env NODE_ENV=development CDN=1 yarn webpack -d --bail",
"build-bundles-min": "cross-env NODE_ENV=production CDN=1 yarn webpack -p --bail",
Expand Down

0 comments on commit ca95547

Please sign in to comment.