mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-17 17:00:33 +03:00
Initial commit
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
var path = require("path");
|
||||
var webpack = require("webpack");
|
||||
var projectRoot = path.resolve(__dirname, '../');
|
||||
|
||||
var loaders = [
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel',
|
||||
include: projectRoot,
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: 'json'
|
||||
},
|
||||
{
|
||||
test: /\.(woff2?|svg)$/,
|
||||
loader: "url"
|
||||
//loader: "url?limit=10000"
|
||||
},
|
||||
{
|
||||
test: /\.(ttf|eot)$/,
|
||||
loader: "url"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
devtool: "source-map",
|
||||
|
||||
entry: {
|
||||
full: path.resolve("dev", "full", "main.js"),
|
||||
mselect: path.resolve("dev", "multiselect", "main.js")
|
||||
},
|
||||
|
||||
output: {
|
||||
path: path.resolve("dev"),
|
||||
filename: "[name].js",
|
||||
publicPath: "/"
|
||||
},
|
||||
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
"process.env": {
|
||||
NODE_ENV: JSON.stringify("development"),
|
||||
FULL_BUNDLE: true
|
||||
}
|
||||
}),
|
||||
],
|
||||
|
||||
module: {
|
||||
loaders
|
||||
},
|
||||
|
||||
resolve: {
|
||||
packageAlias: "browser"
|
||||
},
|
||||
|
||||
vue: {
|
||||
autoprefixer: {
|
||||
browsers: ["last 2 versions"]
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user