38 lines
668 B
JavaScript
38 lines
668 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: path.join(__dirname, 'src', 'additionalScripts.js'),
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, './js'),
|
||
|
publicPath: '/js/',
|
||
|
filename: 'additionalScripts.js'
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.css$/,
|
||
|
use: ['style-loader', 'css-loader']
|
||
|
},
|
||
|
{
|
||
|
test: /\.scss$/,
|
||
|
use: ['style-loader', 'css-loader', 'sass-loader']
|
||
|
},
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
loader: 'babel-loader',
|
||
|
exclude: /node_modules/
|
||
|
},
|
||
|
{
|
||
|
test: /\.(png|jpg|gif|svg)$/,
|
||
|
loader: 'file-loader',
|
||
|
options: {
|
||
|
name: '[name].[ext]?[hash]'
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['*', '.js']
|
||
|
}
|
||
|
};
|