Merge pull request #1885 from isaaclyman/webpack-path-resolve
Use manual path resolution in webpack.config.js
This commit is contained in:
commit
9b947f41f0
2 changed files with 6 additions and 2 deletions
|
|
@ -70,10 +70,12 @@ Create a `.babelrc` file:
|
||||||
Next, create a file called `webpack.config.js`
|
Next, create a file called `webpack.config.js`
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
const path = require('path')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
output: {
|
output: {
|
||||||
path: './bin',
|
path: path.resolve(__dirname, './bin'),
|
||||||
filename: 'app.js',
|
filename: 'app.js',
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|
|
||||||
|
|
@ -112,10 +112,12 @@ Create a `.babelrc` file:
|
||||||
Next, create a file called `webpack.config.js`
|
Next, create a file called `webpack.config.js`
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
const path = require('path')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
output: {
|
output: {
|
||||||
path: './bin',
|
path: path.resolve(__dirname, './bin'),
|
||||||
filename: 'app.js',
|
filename: 'app.js',
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue