-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing mutations + adding dev/prod setup webpack + fixing loading of …
…multiple pages through infinite scroll
- Loading branch information
Showing
8 changed files
with
421 additions
and
159 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,25 @@ | ||
const path = require('path'); | ||
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); | ||
|
||
module.exports = { | ||
entry: './src/index.js', | ||
mode: 'development', | ||
output: { | ||
filename: 'flat-lazy.js', | ||
path: path.resolve(__dirname, 'js'), | ||
}, | ||
|
||
// enable sourcemaps for debugging webpack's output. | ||
devtool: "source-map", | ||
|
||
module: { | ||
rules: [ | ||
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'. | ||
{ test: /\.js$/, loader: 'source-map-loader', enforce: 'pre' } | ||
] | ||
}, | ||
|
||
plugins: [ | ||
new CleanWebpackPlugin(), | ||
] | ||
}; |
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,8 @@ | ||
const { merge } = require('webpack-merge'); | ||
const dev = require('./webpack.dev.js'); | ||
|
||
module.exports = merge(dev, { | ||
|
||
mode: 'production', | ||
devtool: false | ||
}); |