Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed May 17, 2022
1 parent f4450aa commit 488284d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Expand Up @@ -62,6 +62,7 @@
"mediaqueries",
"minifiers",
"misfunction",
"mkdir",
"monospace",
"mouseleave",
"navbars",
Expand Down
19 changes: 9 additions & 10 deletions site/content/docs/5.2/getting-started/webpack.md
Expand Up @@ -84,9 +84,9 @@ With dependencies installed and our project folder ready for us to start coding,
entry: './src/js/main.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, 'dist')
},
devServer:{
devServer: {
static: path.resolve(__dirname, 'dist'),
port: 8080,
hot: true
Expand Down Expand Up @@ -118,7 +118,7 @@ With dependencies installed and our project folder ready for us to start coding,

3. **Now we need an npm script to run Webpack.** Open `package.json` and add the following scripts section. This should be in addition to the project name, description, version, and dependencies we installed earlier.

```js
```json
{
// ...
"scripts": {
Expand Down Expand Up @@ -151,9 +151,9 @@ Importing Bootstrap into Webpack requires the loaders we installed in the first
entry: './src/js/main.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, 'dist')
},
devServer:{
devServer: {
static: path.resolve(__dirname, 'dist'),
port: 8080,
hot: true
Expand All @@ -173,11 +173,9 @@ Importing Bootstrap into Webpack requires the loaders we installed in the first
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: function () {
return [
require('autoprefixer')
];
}
plugins: () => [
require('autoprefixer')
]
}
}
},
Expand All @@ -201,6 +199,7 @@ Importing Bootstrap into Webpack requires the loaders we installed in the first

And then add the following to `src/js/main.js` to load the CSS and import all of Bootstrap's JS. Popper will be imported automatically through Bootstrap.

<!-- eslint-skip -->
```js
// Import our custom CSS
import '../scss/styles.scss'
Expand Down

0 comments on commit 488284d

Please sign in to comment.