Migrate all the things
* Migrates from Mongo to Postgres. * Migrates from JSPM to Webpack. * Migrates from React to Vuejs. * Migrates from Bootstrap to Bulma. Also: * Fixes rendering of meta data in the document head tag.
This commit is contained in:
parent
09706778d9
commit
7bb0497ff4
76 changed files with 6741 additions and 1760 deletions
45
webpack.config.js
Normal file
45
webpack.config.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: './public/src/entry-client.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, './public/dist'),
|
||||
publicPath: '/dist/',
|
||||
filename: 'js/build-client.js',
|
||||
},
|
||||
resolve: {
|
||||
modules: [
|
||||
'node_modules',
|
||||
path.resolve(__dirname, 'public/src'),
|
||||
],
|
||||
extensions: ['.js', '.json', '.vue', '.css'],
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue',
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
devtool: '#source-map',
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: '"production"',
|
||||
},
|
||||
}),
|
||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
||||
new CopyWebpackPlugin([{
|
||||
from: path.resolve(__dirname, './node_modules/bulma/css'),
|
||||
to: path.resolve(__dirname, './public/dist/css/'),
|
||||
}]),
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue