PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 8.5.77
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v8.5.77
9.1.2 9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 8.5.38 8.5.39 8.5.4 All 221 releases
wpvr / webpack.config.js

webpack.config.js in WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress 8.5.77, at webpack.config.js

28 lines 988 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // node module that let's us do file system stuffs...
2 const path = require('path');
3
4 // Webpack expects an exported object with all the configurations, so we export an object here
5 module.exports = {
6 entry: './src/index.js', // Where to find our main js
7 output: {
8 // where we want our built file to go to and be named
9 // I name it index.build.js so I keep index files separate
10 filename: 'index.build.js',
11 // we're going to put our built file in a './build/' folder
12 path: path.resolve(__dirname, 'build')
13 },
14 module: {
15 rules: [
16 {
17 // basically tells webpack to use babel with the correct presets
18 test: /\.js$/,
19 loader: 'babel-loader',
20 query: {
21 presets: ['@babel/preset-env', '@babel/preset-react']
22 }
23 }
24 ]
25 },
26 // Webpack yells at you if you don't choose a mode...
27 mode: 'development'
28 }