|
| 1 | +// ---------------------- |
| 2 | +// IMPORTS |
| 3 | + |
| 4 | +const path = require('path'); |
| 5 | + |
| 6 | +// ---------------------- |
| 7 | + |
| 8 | +// Parent folder = project root |
| 9 | +const root = path.join(__dirname, '..'); |
| 10 | + |
| 11 | +module.exports = { |
| 12 | + // Root project folder. This is the current dir. |
| 13 | + root, |
| 14 | + |
| 15 | + // Kit. ReactQL starter kit code. You can edit these files, but be |
| 16 | + // aware that upgrading your starter kit could overwrite them |
| 17 | + kit: path.join(root, 'kit'), |
| 18 | + |
| 19 | + // Entry points. This is where webpack will look for our browser.js, |
| 20 | + // server.js and vendor.js files to start building |
| 21 | + entry: path.join(root, 'kit', 'entry'), |
| 22 | + |
| 23 | + // Webpack configuration files |
| 24 | + webpack: path.join(root, 'kit', 'webpack'), |
| 25 | + |
| 26 | + // Views for internal use |
| 27 | + views: path.join(root, 'kit', 'views'), |
| 28 | + |
| 29 | + // Source path; where we'll put our application files |
| 30 | + src: path.join(root, 'src'), |
| 31 | + |
| 32 | + // Static files. HTML, images, etc that can be processed by Webpack |
| 33 | + // before being moved into the final `dist` folder |
| 34 | + static: path.join(root, 'static'), |
| 35 | + |
| 36 | + // Dist path; where bundled assets will wind up |
| 37 | + dist: path.join(root, 'dist'), |
| 38 | + |
| 39 | + // Dist path for development; where dev assets will wind up |
| 40 | + distDev: path.resolve(root, 'dist', 'dev'), |
| 41 | + |
| 42 | + // Public. This is where our web server will start looking to serve |
| 43 | + // static files from |
| 44 | + public: path.join(root, 'dist', 'public'), |
| 45 | +}; |
0 commit comments