Skip to content

Commit e107a0d

Browse files
author
Milan Ricoul
authored
Merge pull request #70 from BeAPI/feature/sounds-webpack-plugin
feat : add sounds-webpack-plugin
2 parents fc5adfe + 8688673 commit e107a0d

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"postcss-loader": "^3.0.0",
5050
"prettier": "^1.17.1",
5151
"sass-loader": "^7.1.0",
52+
"sounds-webpack-plugin": "0.0.2",
5253
"uglifyjs-webpack-plugin": "^2.1.3"
5354
},
5455
"dependencies": {

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin')
44
const ManifestPlugin = require('webpack-manifest-plugin')
55
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
66
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
7+
const SoundsPlugin = require('sounds-webpack-plugin')
78
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
89
const WebpackProgressOraPlugin = require('webpack-progress-ora-plugin')
910

@@ -48,7 +49,7 @@ const webpackConfig = {
4849
},
4950
},
5051
'resolve-url-loader',
51-
]
52+
],
5253
},
5354
{
5455
test: /\.(sass|scss)$/,
@@ -145,6 +146,7 @@ module.exports = (env, argv) => {
145146
webpackConfig.devtool = 'source-map'
146147
webpackConfig.output.filename = '[name].js'
147148
webpackConfig.plugins.push(
149+
new SoundsPlugin(),
148150
new MiniCssExtractPlugin({
149151
filename: '[name].css',
150152
allChunks: true,

0 commit comments

Comments
 (0)