Last active
April 15, 2023 15:08
-
-
Save coryhouse/d611e83e432f3ae65cc46ebb9b599930 to your computer and use it in GitHub Desktop.
Development Webpack config for "Building a JavaScript Development Environment" on Pluralsight
This file contains hidden or 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
import path from 'path'; | |
export default { | |
debug: true, | |
devtool: 'inline-source-map', | |
noInfo: false, | |
entry: [ | |
path.resolve(__dirname, 'src/index') | |
], | |
target: 'web', | |
output: { | |
path: path.resolve(__dirname, 'src'), | |
publicPath: '/', | |
filename: 'bundle.js' | |
}, | |
plugins: [], | |
module: { | |
loaders: [ | |
{test: /\.js$/, exclude: /node_modules/, loaders: ['babel']}, | |
{test: /\.css$/, loaders: ['style','css']} | |
] | |
} | |
} |
Hello Frankie,
I would respond to your question tomorrow, I am not in a location with internet that I can use with my laptop.
Apologies for any inconvenience caused!
…-----Original Message-----
From: "Frankie Bukenya" <[email protected]>
Sent: 21/07/2019 18:14
To: "coryhouse" <[email protected]>
Cc: "soji" <[email protected]>; "Comment" <[email protected]>
Subject: Re: coryhouse/webpack.config.dev.js
@coryhouse amazing course!!! Thank you so much!!! Would it be possible to get an updated version of this for the latest version of webpack?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
@Frankie-B - Please post on the course discussion board on Pluralsight. I provide support there.
Please @coryhouse, sir please i am having error using this code. Can you help me detect the problem. Thanks
`
import path from 'path';
export default {
debug: true,
devtool: 'inline-source-map',
noInfo: false,
entry: [
path.resolve(__dirname, 'src/index')
],
target: 'web',
output: {
path: path.resolve(__dirname, 'src'),
publicPath: '/',
filename: 'bundle.js'
},
plugins: [],
module: {
loaders: [
{test: /.js$/, exclude: /node_modules/, loaders: ['babel']},
{test: /.css$/, loaders: ['style','css']}
]
}
}`
Please post questions on the course discussion board on Pluralsight. Include a link to your GitHub.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@coryhouse amazing course!!! Thank you so much!!! Would it be possible to get an updated version of this for the latest version of webpack?