Browse Source

changes for building production webpack bundles

py3-upgrade
Noah Hall 2 years ago
parent
commit
daa956f60a
3 changed files with 7 additions and 6 deletions
  1. +1
    -1
      package.json
  2. +4
    -4
      webpack.config.js
  3. +2
    -1
      yarn.lock

+ 1
- 1
package.json View File

@ -32,7 +32,7 @@
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-fontawesome": "^1.6.1",
"react-soundcloud-widget": "file:../react-soundcloud-widget",
"react-soundcloud-widget": "https://github.com/nthall/react-soundcloud-widget",
"react-youtube": "^7.5.0",
"sass-loader": "^6.0.6",
"style-loader": "^0.20.1",


+ 4
- 4
webpack.config.js View File

@ -8,9 +8,9 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = [
{
name: 'site',
mode: 'development',
// the base directory (absolute path) for resolving the entry option
context: __dirname,
node: false,
// the entry point we created earlier. Note that './' means
// your current directory. You don't have to specify the extension now,
// because you will specify extensions later in the `resolve` section
@ -52,7 +52,7 @@ module.exports = [
loader: 'babel-loader',
query: {
// specify that we will be dealing with React code
presets: ['react', 'env']
presets: ['react', 'babel-preset-env']
}
},
{
@ -75,8 +75,8 @@ module.exports = [
},
{
name: 'browser',
mode: 'development',
context: path.resolve(__dirname, 'browser'),
node: false,
entry: {
background: './src/js/background',
bandcamp: './src/js/bandcamp',
@ -105,7 +105,7 @@ module.exports = [
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['env']
presets: ['babel-preset-env']
}
}
]


+ 2
- 1
yarn.lock View File

@ -4989,8 +4989,9 @@ react-fontawesome@^1.6.1:
dependencies:
prop-types "^15.5.6"
"react-soundcloud-widget@file:../react-soundcloud-widget":
"react-soundcloud-widget@https://github.com/nthall/react-soundcloud-widget":
version "2.1.1"
resolved "https://github.com/nthall/react-soundcloud-widget#0e8aac5e5003ce2de7fd44f02bd79bccdb252b5a"
dependencies:
load-script "^1.0.0"


Loading…
Cancel
Save