1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 18:42:31 +01:00
Pterodactyl-Panel/webpack.config.js

44 lines
1.1 KiB
JavaScript
Raw Normal View History

module.exports = {
2018-06-04 02:40:35 +02:00
mode: 'development',
performance: {
hints: false,
},
entry: {
main: './resources/assets/scripts/app.js',
},
output: {
2018-06-04 02:40:35 +02:00
path: '/dist',
filename: 'webpack.build.js',
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
postcss: [
require('postcss-import'),
require('postcss-preset-env')({stage: 0}),
require('tailwindcss')('./tailwind.js'),
require('autoprefixer'),
]
}
},
{
test: /\.js$/,
2018-03-31 22:51:18 +02:00
exclude: /(node_modules|vendor)/,
use: [{
loader: "babel-loader",
options: { presets: ['es2015'] }
}]
},
]
},
resolve: {
alias: {
2018-03-31 22:51:18 +02:00
'vue$': 'vue/dist/vue.esm.js'
},
extensions: ['*', '.js', '.vue', '.json']
},
};