summaryrefslogtreecommitdiff
path: root/day9/task5_vue/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'day9/task5_vue/webpack.config.js')
-rw-r--r--day9/task5_vue/webpack.config.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/day9/task5_vue/webpack.config.js b/day9/task5_vue/webpack.config.js
new file mode 100644
index 0000000..38efa45
--- /dev/null
+++ b/day9/task5_vue/webpack.config.js
@@ -0,0 +1,33 @@
+const path = require('path');
+
+const VueLoaderPlugin = require('vue-loader/lib/plugin');
+
+module.exports = {
+ entry: './src/index.js',
+ module: {
+ rules: [
+ {
+ test: /\.vue$/,
+ loader: 'vue-loader'
+ },
+ {
+ test: /\.js$/,
+ loader: 'babel-loader'
+ },
+ {
+ test: /\.css$/,
+ use: [
+ 'vue-style-loader',
+ 'css-loader'
+ ]
+ }
+ ]
+ },
+ output: {
+ filename: 'bundle.js',
+ path: path.resolve(__dirname, 'static/js')
+ },
+ plugins: [
+ new VueLoaderPlugin()
+ ]
+}; \ No newline at end of file