You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
const path = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
gos: './Scripts/main.js'
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
jquery: 'jquery/src/jquery'
|
|
}
|
|
},
|
|
plugins: [
|
|
new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' })
|
|
],
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.resolve(__dirname, 'wwwroot/js')
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.scss$/,
|
|
use: [
|
|
"style-loader", // creates style nodes from JS strings
|
|
"css-loader", // translates CSS into CommonJS
|
|
"sass-loader" // compiles Sass to CSS
|
|
]
|
|
},
|
|
{
|
|
test: /\.exec\.js$/,
|
|
use: [
|
|
"script-loader"
|
|
]
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: "babel-loader",
|
|
options: {
|
|
presets: ['@babel/preset-env']
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|