mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
* [examples] Fix ionic-react example * [examples] Fix vue example * [examples] Fix mithril example * [examples] Fix riot example * Fix readmes * [now-static-build] Add Zola * Add tests * [now-build-utils][frameworks] Adjust detect framework * Move zola back * Undo Hugo detection changes * [examples] Fix Vue logo path * [now-static-build] Use package.json script if defined instead of framework command * [now-static-build] Add buildCommand everywhere * Remove devCommand from frameworks.ts * Fix type * Change output directory * [now-static-build] Remove minNodeRange * Remove devCommand
39 lines
725 B
JavaScript
39 lines
725 B
JavaScript
const path = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: './src/main.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'public'),
|
|
publicPath: '/public/',
|
|
filename: 'bundle.js'
|
|
},
|
|
devtool: 'inline',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.riot$/,
|
|
exclude: /node_modules/,
|
|
use: [
|
|
{
|
|
loader: '@riotjs/webpack-loader',
|
|
options: {
|
|
hot: true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: ['@babel/preset-env']
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|