65 lines
1.2 KiB
JavaScript
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'
|
|
})
|
|
]
|
|
}
|