neutral-old/webpack.config.js
2023-02-18 22:09:04 +01:00

65 lines
1.2 KiB
JavaScript

const path = require('path')
var webpack = require("webpack");
module.exports = {
entry: './src/js/main.js',
output: {
filename: 'neutron.bundle.js',
path: path.resolve(__dirname, 'public')
} ,
module: {
rules: [
{
test: /\.(scss)$/,
use: [
{
loader: 'style-loader'
},
{
loader: 'css-loader'
},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: () => [
require('autoprefixer')
]
}
}
},
{
loader: 'sass-loader'
}
]
}, {
test: /\.css$/,
use: [
{
loader: 'style-loader'
},
{
loader: 'css-loader'
},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: () => [
require('autoprefixer')
]
}
}
}
]
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
]
}